Merge pull request #116 from fifthsegment/copilot/optimize-gatesentry… #69
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Go Test and Coverage | |
| on: | |
| push: | |
| branches: ["master"] | |
| paths: | |
| - "**.go" | |
| pull_request: | |
| branches: ["master"] | |
| paths: | |
| - "**.go" | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v2 | |
| - name: Set up Go 1.x | |
| uses: actions/setup-go@v2 | |
| with: | |
| go-version: ^1.17 | |
| #- name: Run Tests with Coverage | |
| # run: go test ./... -coverprofile=coverage.txt -covermode=atomic | |
| - name: Run Tests with Coverage | |
| run: make test | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v2 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| file: ./coverage.txt |