| 1 | name: Test and coverage |
| 2 | |
| 3 | on: [ push, pull_request ] |
| 4 | |
| 5 | jobs: |
| 6 | build: |
| 7 | runs-on: ubuntu-latest |
| 8 | steps: |
| 9 | - uses: actions/checkout@v2 |
| 10 | with: |
| 11 | fetch-depth: 2 |
| 12 | - uses: actions/setup-go@v2 |
| 13 | with: |
| 14 | go-version: '1.16' |
| 15 | - name: Run CI |
| 16 | run: make ci |
| 17 | - name: Upload coverage to codecov.io |
| 18 | uses: codecov/codecov-action@v1 |