[INTG-1601]: Bump github.com/grpc-ecosystem/grpc-gateway/v2 from 2.22… #503
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
# yamllint disable rule:line-length | |
--- | |
name: Tests | |
# yamllint disable-line rule:truthy | |
on: | |
workflow_dispatch: | |
pull_request: | |
types: [opened] | |
push: | |
jobs: | |
Unit-Tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go 2.x | |
uses: actions/setup-go@v2 | |
with: | |
go-version: '1.22' | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v2 | |
- name: Test & Coverage | |
env: | |
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} | |
run: | | |
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter | |
chmod +x ./cc-test-reporter | |
./cc-test-reporter before-build | |
go test -coverprofile c.out.tmp -coverpkg ./... ./... | |
cat c.out.tmp | grep -v "pb.go" > c.out | |
./cc-test-reporter after-build --prefix $(go list -m) | |
- name: Upload Coverage Result Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: codeclimate-unit | |
path: codeclimate.json | |
retention-days: 1 | |
- uses: actions/setup-python@v2 | |
- name: Run pre commit linting | |
uses: pre-commit/action@v2.0.0 |