Skip to content

Commit e7d2a07

Browse files
committed
ci: Regenerate and verify the supported message file
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.
1 parent 15f6d22 commit e7d2a07

File tree

3 files changed

+22
-1
lines changed

3 files changed

+22
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: CI verify cleanly generated supported message
2+
'on':
3+
workflow_call: null
4+
jobs:
5+
supported_message:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: Checkout (GitHub)
9+
uses: actions/checkout@v4
10+
- name: Install dependencies
11+
run: npm install
12+
working-directory: tools/schema/
13+
- name: Regenerate supported message
14+
run: node gen_supported_message
15+
working-directory: tools/schema/
16+
- name: Format generated code
17+
run: rustfmt lib/src/core/supported_message.rs
18+
- name: Verify generated code matches committed code
19+
run: git status --porcelain

.github/workflows/main.yml

+3
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,8 @@ jobs:
3737
code-coverage:
3838
uses: ./.github/workflows/ci_code_coverage.yml
3939

40+
verify-clean-supported-message:
41+
uses: ./.github/workflows/ci_verify_clean_supported_message.yml
42+
4043
verify-code-formatting:
4144
uses: ./.github/workflows/ci_format_code.yml

rustfmt.toml

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
ignore = [
2-
"core/src/supported_messsages.rs",
32
"server/src/address_space/generated",
43
"types/src/node_ids.rs",
54
"types/src/service_types",

0 commit comments

Comments
 (0)