Merge pull request #52 from wzshiming/feat/decode-type-meta #102
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: Static analysis | |
on: [push, pull_request] | |
permissions: read-all | |
jobs: | |
run: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v6 | |
with: | |
version: v1.57.1 | |
args: --config tools/.golangci.yaml | |
- run: | | |
set -euo pipefail | |
make verify | |
- run: | | |
set -euo pipefail | |
make fmt | |
DIFF=$(git status --porcelain) | |
if [ -n "$DIFF" ]; then | |
echo "These files were modified:" | |
echo | |
echo "$DIFF" | |
echo | |
exit 1 | |
fi |