Skip to content

Commit

Permalink
Add github workflow to verify that the default config is up-to-date
Browse files Browse the repository at this point in the history
  • Loading branch information
steamroller-airmash committed May 28, 2022
1 parent d5c64e8 commit dee0c47
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion .github/workflows/build-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,33 @@ jobs:
command: fmt
args: --all -- --check --config unstable_features=true

verify-config:
name: verify-config
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
- uses: Swatinem/rust-cache@v1
with:
key: verify-config
- uses: actions-rs/cargo@v1
with:
command: run
args: --example export-config > new-default.json
- name: Diff configs
run: |
cp configs/default.json old-default.json
diff -u new-default.json old-default.json
verify-pass:
name: verify-tests-pass
needs: [test, format]
needs: [test, format, verify-config]
runs-on: ubuntu-latest

steps:
Expand Down

0 comments on commit dee0c47

Please sign in to comment.