gh test workflow
Vladimir Bauer
4 years ago
| 0 | name: Test | |
| 1 | on: [push, pull_request] | |
| 2 | jobs: | |
| 3 | test: | |
| 4 | strategy: | |
| 5 | matrix: | |
| 6 | go-version: [1.16.x, 1.17.x] | |
| 7 | os: [ubuntu-latest, macos-latest, windows-latest] | |
| 8 | runs-on: ${{ matrix.os }} | |
| 9 | steps: | |
| 10 | - name: Install Go | |
| 11 | uses: actions/setup-go@v2 | |
| 12 | with: | |
| 13 | go-version: ${{ matrix.go-version }} | |
| 14 | - name: Checkout code | |
| 15 | uses: actions/checkout@v2 | |
| 16 | - name: Test | |
| 17 | run: go test -race ./... |