Merge pull request #85 from navidys/dependabot/go_modules/github.com/… #122
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 | |
| on: | |
| push: | |
| branches: [ main ] | |
| jobs: | |
| unit_test: | |
| name: Unit test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Set up Go | |
| uses: actions/setup-go@v3 | |
| with: | |
| go-version: 1.24.7 | |
| id: go | |
| - name: Check out code into the Go module directory | |
| uses: actions/checkout@v2 | |
| - name: Get dependencies | |
| run: | | |
| export GOBIN=$(pwd)/bin/ | |
| make .install.ginkgo | |
| - name: Generate coverage report | |
| run: | | |
| export GOBIN=$(pwd)/bin/ | |
| make test-unit | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v3 | |
| env: | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
| with: | |
| file: .coverage/coverprofile | |
| name: codecov-umbrella | |
| fail_ci_if_error: true |