From 3d21a2402f63f8d4df599aa653fa2bb4ce011288 Mon Sep 17 00:00:00 2001 From: Alvaro Revuelta Date: Tue, 16 Jan 2024 15:07:53 +0100 Subject: [PATCH] Add CI for tests Add CI for tests --- .github/workflows/tests.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) 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..a45be13 --- /dev/null +++ b/.github/workflows/tests.yml @@ -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