.github/workflows/ci.yml
raw| 1 | name: ci |
| 2 | on: |
| 3 | pull_request: |
| 4 | branches: |
| 5 | - master |
| 6 | push: |
| 7 | branches: |
| 8 | - master |
| 9 | jobs: |
| 10 | test: |
| 11 | strategy: |
| 12 | matrix: |
| 13 | os: [ubuntu-latest, macos-latest, windows-latest] |
| 14 | go: ["1.14", "1.15"] |
| 15 | runs-on: ${{ matrix.os }} |
| 16 | steps: |
| 17 | - uses: actions/checkout@v2 |
| 18 | - uses: actions/setup-go@v2 |
| 19 | with: |
| 20 | go-version: ${{ matrix.go }} |
| 21 | - run: | |
| 22 | go test -cover -coverprofile coverage.txt -race -v ./... |
| 23 | - uses: codecov/codecov-action@v1 |