Merge pull request #53 from navidys/golangci_lint_update #86
This file contains 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 1.22 | |
uses: actions/setup-go@v1 | |
with: | |
go-version: 1.22 | |
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 |