build(deps): bump golang.org/x/tools from 0.21.0 to 0.22.0 in /protocol #202
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: Protocol CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
types: [opened, synchronize] | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: ^1.20 | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: Style checks | |
run: | | |
make -C protocol style | |
if ! git diff --exit-code HEAD; then | |
echo | |
echo "*** Files are not formatted properly. See the above diff for more info." | |
exit 1 | |
fi | |
- name: Unit tests | |
run: | | |
make -C protocol unit-tests |