summaryrefslogtreecommitdiff
path: root/.github/workflows/tests.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/tests.yml')
-rw-r--r--.github/workflows/tests.yml19
1 files changed, 19 insertions, 0 deletions
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
new file mode 100644
index 0000000..e0bd2fe
--- /dev/null
+++ b/.github/workflows/tests.yml
@@ -0,0 +1,19 @@
+on: [push, pull_request]
+name: Tests
+jobs:
+ test:
+ strategy:
+ matrix:
+ go-version: [1.21.x, 1.22.x, 1.23.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: Test
+ run: go test -v ./...
+