Skip to content

Commit

Permalink
Merge pull request #32 from influxdata/chore/fmt-ci-check
Browse files Browse the repository at this point in the history
chore: cargo fmt check in CI
  • Loading branch information
lukebond authored Jul 6, 2023
2 parents 55bc050 + fc074fd commit 782ad7b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,14 @@ jobs:
- uses: Swatinem/rust-cache@6fd3edff6979b79f87531400ad694fb7f2c84b1f # v2
- name: Build
run: cargo build
- name: Format
run: |
cargo fmt
test -z "$(git status --porcelain)" || (echo 'Changes detected after running cargo fmt'; git status; git --no-pager diff; false)
- name: Generate
run: cargo run -- manifests > manifests/crd.yml
- name: Diff
run: test -z "$(git status --porcelain)" || (echo 'Changes detected after generating manifests'; git status; git --no-pager diff; false)
run: |
cargo run -- manifests > manifests/crd.yml
test -z "$(git status --porcelain)" || (echo 'Changes detected after generating manifests'; git status; git --no-pager diff; false)
- name: Run tests
run: cargo test

Expand Down

0 comments on commit 782ad7b

Please sign in to comment.