Skip to content

Commit

Permalink
ci: add PR code formatting check
Browse files Browse the repository at this point in the history
Add a CI pipeline to validate code formatting on Pull Requests.

Signed-off-by: Renato Westphal <[email protected]>
  • Loading branch information
rwestphal committed Sep 4, 2023
1 parent cf80e37 commit 5b80a74
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
on: [push, pull_request]

env:
CARGO_TERM_COLOR: always
Expand All @@ -24,6 +20,10 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@nightly
- uses: mbrobbel/rustfmt-check@master
with:
token: ${{ secrets.GITHUB_TOKEN }}
mode: review
- name: Generate test result and coverage report
run: |
cargo install cargo2junit grcov;
Expand All @@ -41,7 +41,7 @@ jobs:
files: ./lcov.info
fail_ci_if_error: true

push-store-image:
push-image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit 5b80a74

Please sign in to comment.