Skip to content

Harmonize field mask validation #29

Harmonize field mask validation

Harmonize field mask validation #29

Workflow file for this run

name: General
on: pull_request
jobs:
ci:
name: Continuous Integration
runs-on: ubuntu-20.04
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '~1.19'
- name: Initialize Go module cache
uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Install Protoc
run: |
PB_REL="https://github.com/protocolbuffers/protobuf/releases"
PB_VERSION=23.4
curl -LO $PB_REL/download/v$PB_VERSION/protoc-$PB_VERSION-linux-x86_64.zip
unzip protoc-$PB_VERSION-linux-x86_64.zip -d $HOME/.local
- name: Test, benchmark and build
run: make -B clean test benchmark build
- name: Format files
run: gofmt -w -s $(go list -f '{{ .Dir }}' ./...)
- name: Check diff
run: go mod tidy && git diff --exit-code