Add CI for tests

Add CI for tests
This commit is contained in:
Alvaro Revuelta 2024-01-16 15:07:53 +01:00 committed by GitHub
parent fa738c0bdf
commit 3d21a2402f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

@ -0,0 +1,19 @@
on: [push, pull_request]
name: Tests
jobs:
test:
strategy:
matrix:
go-version: [1.18.x]
os: [ubuntu-latest, macos-latest, windows-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