Merge pull request #146 from alta/dependabot/go_modules/golang.org/x/… #458
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: Go | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
test: | |
name: Test Go | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Install protoc | |
uses: arduino/setup-protoc@v3 | |
with: | |
version: "21.12" | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ^1 | |
- name: Install Go tools | |
run: make tools | |
- name: Regenerate protos | |
run: make protos | |
- name: Vet Go code | |
run: make vet | |
- name: Run Go tests | |
run: make test | |
- name: Verify repo is unchanged | |
run: git diff --exit-code HEAD -w -G'(^[^# /])|(^#\w)|(^\s+[^#/])' # Ignore whitespace and comments |