| 1 | name: Go |
| 2 | |
| 3 | on: |
| 4 | push: {} |
| 5 | pull_request: {} |
| 6 | |
| 7 | jobs: |
| 8 | |
| 9 | build: |
| 10 | name: Build |
| 11 | runs-on: ubuntu-latest |
| 12 | steps: |
| 13 | - name: Set up Go 1.x |
| 14 | uses: actions/setup-go@v2 |
| 15 | with: |
| 16 | go-version: ^1.13 |
| 17 | id: go |
| 18 | |
| 19 | - name: Checkout repository |
| 20 | uses: actions/checkout@v2 |
| 21 | |
| 22 | - name: Test |
| 23 | run: go test -v -covermode=count -coverprofile=coverage.out |
| 24 | |
| 25 | # - name: Upload coverage |
| 26 | # uses: codecov/codecov-action@v1 |
| 27 | # with: |
| 28 | # file: ./coverage.out |
| 29 | # flags: unittests |
| 30 | # fail_ci_if_error: true |
| 31 | # verbose: true |
| 32 | |
| 33 | # - name: Export unit tests artifact |
| 34 | # uses: actions/upload-artifact@v2 |
| 35 | # with: |
| 36 | # name: unit-tests-report |
| 37 | # path: ./coverage.out |