From 06e6fa3fd135133a72edc7dc84036f08ab3ccc8b Mon Sep 17 00:00:00 2001 From: Alvaro Revuelta Date: Tue, 16 Jan 2024 15:31:15 +0100 Subject: [PATCH] Add CI for tests (#18) --- .github/workflows/tests.yml | 20 ++++++++++++++++++++ go.mod | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..96cedf6 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,20 @@ +on: [push, pull_request] +name: Tests +jobs: + test: + strategy: + matrix: + go-version: [1.19.x] + # Disabled: windows-latest + os: [ubuntu-latest, macos-latest] + runs-on: ${{ matrix.os }} + steps: + - name: Install Go + uses: actions/setup-go@v2 + with: + go-version: ${{ matrix.go-version }} + - name: Checkout code + uses: actions/checkout@v2 + - name: Run tests + run: | + go test ./... -v diff --git a/go.mod b/go.mod index 29c7a94..a77a34e 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/waku-org/go-zerokit-rln -go 1.18 +go 1.19 require ( github.com/stretchr/testify v1.7.2