Skip to content

Commit

Permalink
ci: Enable code formatting verification
Browse files Browse the repository at this point in the history
upon pushes and pull requests.

Co-authored-by: Philipp Caspers <[email protected]>
  • Loading branch information
AiyionPrime and philipp-caspers committed Jun 14, 2024
1 parent 27f1313 commit 3fc5659
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: CI
'on':
push: null
pull_request: null
env:
CARGO_TERM_COLOR: always
jobs:
format_code:
uses: ./.github/workflows/ci_format_code.yml
11 changes: 11 additions & 0 deletions .github/workflows/ci_format_code.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: CI Format
'on':
workflow_call: null
jobs:
fmt:
runs-on: ubuntu-latest
steps:
- name: Checkout (GitHub)
uses: actions/checkout@v4
- name: Verify Code is formatted
run: cargo fmt -- --check

0 comments on commit 3fc5659

Please sign in to comment.