if it ain't broke...
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 886bdc1..3993573 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -1,18 +1,22 @@
-name: Go package
-
on: [push, pull_request]
-
+name: CI
jobs:
- build:
-
- runs-on: ubuntu-latest
+ test:
+ strategy:
+ matrix:
+ go-version: [1.20.1]
+ os: [ubuntu-latest, macos-latest, windows-latest]
+ runs-on: ${{ matrix.os }}
steps:
- - uses: actions/checkout@v3
-
- - name: Set up Go
- uses: actions/setup-go@v3
- with:
- go-version: 1.20.1
-
- - name: Test
- run: go test -v -race ./...
\ No newline at end of file
+ - name: Install Go
+ uses: actions/setup-go@v3
+ with:
+ go-version: ${{ matrix.go-version }}
+ stable: false
+ - name: Checkout code
+ uses: actions/checkout@v3
+ - name: Test
+ run: |
+ go test -v -race ./...
+ # go vet ./...
+ # go test -bench=.
\ No newline at end of file