1name: Test 2on: [push, pull_request] 3permissions: 4 contents: read 5jobs: 6 test: 7 strategy: 8 fail-fast: false 9 matrix: 10 os: [ubuntu-latest, windows-latest, macos-latest] 11 go: ["1.21"] 12 13 runs-on: ${{ matrix.os }} 14 15 steps: 16 - name: Set up Go 17 uses: actions/setup-go@v3 18 with: 19 go-version: ${{ matrix.go }} 20 21 - name: Checkout repository 22 uses: actions/checkout@v4 23 24 - name: Run tests 25 run: go test -v ./...