forked from arlyon/async-stripe
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request arlyon#268 from mzeitlin11/verify_codegen
CI: Add codegen verification step
- Loading branch information
Showing
17 changed files
with
23 additions
and
1,138 deletions.
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ on: | |
branches: | ||
- master | ||
jobs: | ||
format: | ||
verify-codegen: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
@@ -22,10 +22,27 @@ jobs: | |
command: install | ||
args: --debug cargo-make | ||
- name: regenerate openapi | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: make | ||
args: openapi-install | ||
- name: ensure generated files unchanged | ||
uses: tj-actions/[email protected] | ||
id: verify-changed-files | ||
with: | ||
files: | | ||
**/*.rs | ||
- name: report changed files | ||
if: steps.verify-changed-files.outputs.files_changed == 'true' | ||
run: | | ||
echo "Some files changed after code generation: ${{ steps.verify-changed-files.outputs.changed_files }}" | ||
exit 1 | ||
- name: format | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: make | ||
args: check | ||
|
||
clippy: | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
|
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
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
200 changes: 0 additions & 200 deletions
200
src/resources/generated/account_service_resource_toggle_settings.rs
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.