Skip to content

Commit

Permalink
github actions: verify schema against generated file
Browse files Browse the repository at this point in the history
  • Loading branch information
Tristramg committed Feb 21, 2024
1 parent 98ba06d commit 0d36b01
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,18 @@ jobs:
with:
command: clippy
args: -- -D warnings

flatbuffers:
name: Check FlatBuffers generated file
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install flatc
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: flatbuffers-compiler
- name: Generate rust code from schema
run: flatc --rust schema/lrs.fbs
- name: Ensure same output as commited
run: diff src/lrs_generated.rs lrs_generated.rs

0 comments on commit 0d36b01

Please sign in to comment.