Skip to content

Commit

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

Furthermore drop the generated file from rustfmt ignore
as it's apparently currently formatted.

And as its the last entry, drop the file itself.
  • Loading branch information
AiyionPrime committed Jul 24, 2024
1 parent 59094ff commit 5a260e7
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/ci_verify_clean_node_ids.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: CI verify cleanly generated node ids
'on':
workflow_call: null
jobs:
node_ids:
runs-on: ubuntu-latest
steps:
- name: Checkout (GitHub)
uses: actions/checkout@v4
- name: Install dependencies
run: npm install
working-directory: tools/schema/
- name: Regenerate node ids
run: node gen_node_ids
working-directory: tools/schema/
- name: Format generated code
run: rustfmt lib/src/types/node_ids.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 @@ -54,6 +54,9 @@ jobs:
verify-clean-address-space:
uses: ./.github/workflows/ci_verify_clean_address_space.yml

verify-clean-node-ids:
uses: ./.github/workflows/ci_verify_clean_node_ids.yml

verify-clean-supported-message:
uses: ./.github/workflows/ci_verify_clean_supported_message.yml

Expand Down
3 changes: 0 additions & 3 deletions rustfmt.toml

This file was deleted.

0 comments on commit 5a260e7

Please sign in to comment.