-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Regenerate and verify the types files (#350)
* fix: Extend generation of types by Default macro in order to match a change introduced in commit eab4caa: "Rewrite the client to be async all the way through". this resolves #349 * ci: Regenerate and verify the types files in order to enforce congruence between them and the schema. Furthermore drop the generated files from rustfmt ignore as they're apparently currently formatted.
- Loading branch information
1 parent
ed31810
commit 59094ff
Showing
4 changed files
with
29 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: CI verify cleanly generated types | ||
'on': | ||
workflow_call: null | ||
jobs: | ||
types: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout (GitHub) | ||
uses: actions/checkout@v4 | ||
- name: Install dependencies | ||
run: npm install | ||
working-directory: tools/schema/ | ||
- name: Regenerate types | ||
run: node gen_types | ||
working-directory: tools/schema/ | ||
- name: Format generated code | ||
run: rustfmt lib/src/types/service_types/mod.rs | ||
- name: Verify generated code matches committed code | ||
run: git status --porcelain |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
ignore = [ | ||
"types/src/node_ids.rs", | ||
"types/src/service_types", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters