build(deps): Bump google.golang.org/grpc from 1.53.0 to 1.56.3 #190
Workflow file for this run
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: Test | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
env: | |
GO_VERSION: 1.18 | |
permissions: | |
checks: write | |
contents: read | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
services: | |
mongodb: | |
image: mongo:latest | |
ports: | |
- 27017:27017 | |
redis: | |
image: redis:latest | |
ports: | |
- 6379:6379 | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
- uses: actions/checkout@v3 | |
- name: Cache Go modules | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cache/go-build | |
~/go/pkg/mod | |
key: ${{ runner.os }}-golang-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-golang- | |
- name: Install mockgen | |
run: go install github.com/golang/mock/mockgen@latest | |
- name: Install gotestsum | |
run: go install gotest.tools/gotestsum@latest | |
- name: Generate Mocks | |
run: make gen-mocks | |
- name: Generate TLS certificates | |
run: make gen-cert | |
- name: Go mod tidy | |
run: go mod tidy | |
- name: Make test | |
run: make test | |
- name: Publish test results | |
uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: gotest.out | |
path: gotest.out | |
- name: Publish JUnit report | |
uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: junit.xml | |
path: junit.xml | |
- name: JUnit report action | |
uses: mikepenz/action-junit-report@v3 | |
if: always() | |
with: | |
report_paths: junit.xml | |
job_name: test | |
check_name: JUnit Test Report | |
- name: Coverage Report | |
uses: codecov/codecov-action@v3 | |
if: always() | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
fail_ci_if_error: true | |
files: coverage.out | |
verbose: true |