| 1 | name: Test |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | branches: [main] |
| 6 | pull_request: |
| 7 | |
| 8 | jobs: |
| 9 | test: |
| 10 | strategy: |
| 11 | matrix: |
| 12 | go-version: [1.16.x, 1.17.x] |
| 13 | os: [ubuntu-latest, macos-latest] |
| 14 | runs-on: ${{ matrix.os }} |
| 15 | |
| 16 | steps: |
| 17 | - name: Install go |
| 18 | uses: WillAbides/[email protected] |
| 19 | with: |
| 20 | go-version: ${{ matrix.go-version }} |
| 21 | |
| 22 | - name: Check out code |
| 23 | uses: actions/checkout@v2 |
| 24 | |
| 25 | - name: Test |
| 26 | run: go test -count 1 -bench . -benchtime 1x ./... |