Skip to content

Commit

Permalink
.github: check code generation (#570)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmcloughlin committed Apr 26, 2022
1 parent abf5559 commit e4f64b4
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion .github/workflows/go.yml
Expand Up @@ -38,7 +38,30 @@ jobs:
env:
CGO_ENABLED: 1
run: go test -cpu="1,4" -short -race -v ./...


generate:
strategy:
matrix:
pkg: [s2, zstd]
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17.x

- name: Checkout code
uses: actions/checkout@v2

- name: Generate
working-directory: ${{ matrix.pkg }}/_generate
run: go generate -v -x

- name: Git Status
run: |
git diff
test -z "$(git status --porcelain)"
build-special:
env:
CGO_ENABLED: 0
Expand Down

0 comments on commit e4f64b4

Please sign in to comment.