Bump google.golang.org/grpc from 1.51.0 to 1.57.0 #2227
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: main | |
on: [push, pull_request] | |
jobs: | |
test: | |
name: Build on ${{ matrix.os }} with Go ${{ matrix.go }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macOS-latest] | |
go: ['1.20'] | |
steps: | |
- name: Set up Go ${{ matrix.go }} | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ matrix.go }} | |
id: go | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v3 | |
- name: Cache modules | |
uses: actions/[email protected] | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.OS }}-go-${{ hashFiles('**/go.sum') }} | |
- name: Build | |
run: go build | |
- name: Lint | |
run: go vet ./... | |
- name: Test | |
run: go test -p 1 -coverpkg ./... -covermode atomic -coverprofile coverage.txt ./... | |
- name: Upload coverage to Codecov | |
uses: codecov/[email protected] | |
if: matrix.os == 'ubuntu-latest' | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
file: ./coverage.txt | |
test-docker-image-building: | |
name: Test docker image building | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: docker/build-push-action@v4 # Action page: <https://github.com/docker/build-push-action> | |
with: | |
context: . | |
file: Dockerfile | |
push: false | |
tags: app:ci | |
- run: docker run --rm app:ci --version |