Merge pull request #37 from davidramiro/dependabot/go_modules/github.… #108
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: Build & test | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Setup Go | |
| uses: actions/setup-go@v3 | |
| with: | |
| go-version: '>=1.22.0' | |
| - name: Install mockery | |
| run: go install github.com/vektra/mockery/v2@v2.53.3 | |
| - name: Generate mocks | |
| run: mockery | |
| - name: Build | |
| run: go build -v ./... | |
| - name: Test with the Go CLI | |
| run: go test ./... -coverprofile="cover.out" -covermode=atomic -coverpkg=./... | |
| - name: check test coverage | |
| uses: vladopajic/go-test-coverage@v2 | |
| with: | |
| config: ./.testcoverage.yml |