Add CI for tests (#18)

This commit is contained in:
Alvaro Revuelta 2024-01-16 15:31:15 +01:00 committed by GitHub
parent fa738c0bdf
commit 06e6fa3fd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 1 deletions

20
.github/workflows/tests.yml vendored Normal file
View File

@ -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

2
go.mod
View File

@ -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