Skip to content

Commit

Permalink
build: update generated code for go and js (#339)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhamzeh authored Sep 9, 2024
2 parents 7f8a568 + 220da0e commit 733d874
Show file tree
Hide file tree
Showing 9 changed files with 565 additions and 528 deletions.
13 changes: 12 additions & 1 deletion .github/workflows/pkg-go-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,22 @@ jobs:
- name: Lint
run: make lint-go

check-gen:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: Generate Antlr code and validate up to date
run: |
make antlr-gen-go
git diff --text --exit-code ./pkg/go/gen
build:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: ["1.21", "1.22"]
go-version: ["1.22", "1.23"]
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/pkg-java-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,18 @@ jobs:
- name: Lint Java source
run: make lint-java

check-gen:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: Generate Antlr code and validate up to date
run: |
make antlr-gen-java
git diff --text --exit-code ./pkg/java/src/main/gen

test:
name: Test Java
runs-on: ubuntu-latest
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/pkg-js-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,17 @@ jobs:
- name: Run eslint and prettier
run: make lint-js

check-gen:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: Generate Antlr code and validate up to date
run: |
make antlr-gen-js
git diff --text --exit-code ./pkg/js/gen
build:
runs-on: ubuntu-latest

Expand Down
12 changes: 6 additions & 6 deletions pkg/go/gen/OpenFGAParser.interp

Large diffs are not rendered by default.

143 changes: 72 additions & 71 deletions pkg/go/gen/OpenFGAParser.tokens

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 733d874

Please sign in to comment.