Skip to content

Commit

Permalink
ci: Regenerate and verify the supported message file
Browse files Browse the repository at this point in the history
in order to enforce congruence between it and its source list.

Furthermore drop the generated file from rustfmt ignore
as it's apparently currently formatted.
  • Loading branch information
AiyionPrime committed Jun 26, 2024
1 parent cc35166 commit 363c7ce
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .github/workflows/ci_verify_clean_supported_message.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: CI verify cleanly generated supported message
'on':
workflow_call: null
jobs:
supported_message:
runs-on: ubuntu-latest
steps:
- name: Checkout (GitHub)
uses: actions/checkout@v4
- name: Install dependencies
run: npm install
working-directory: tools/schema/
- name: Regenerate supported message
run: node gen_supported_message
working-directory: tools/schema/
- name: Format generated code
run: rustfmt lib/src/core/supported_message.rs
- name: Verify generated code matches committed code
run: git status --porcelain
3 changes: 3 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,6 @@ jobs:
run: cargo build --features test-vendored-openssl
- name: Run tests
run: cargo test --features test-vendored-openssl --verbose

verify-clean-supported-message:
uses: ./.github/workflows/ci_verify_clean_supported_message.yml
1 change: 0 additions & 1 deletion rustfmt.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
ignore = [
"core/src/supported_messsages.rs",
"server/src/address_space/generated",
"types/src/node_ids.rs",
"types/src/service_types",
Expand Down

0 comments on commit 363c7ce

Please sign in to comment.