Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add github workflow to verify that the default config is up-to-date #160

Merged
merged 3 commits into from
Jun 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 24 additions & 1 deletion .github/workflows/build-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,32 @@ 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
- name: Build and run
run: |
cargo run --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
300 changes: 0 additions & 300 deletions default-config.json

This file was deleted.