Skip to content

Commit

Permalink
Split push and review workflows to appease rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
kesyog committed Feb 4, 2024
1 parent 264ec02 commit 123873d
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 3 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Push

on:
push:
branches: [ main ]

env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
with:
components: clippy, rustfmt
- name: clippy
uses: clechasseur/rs-clippy-check@v3
- name: rustfmt
uses: mbrobbel/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
4 changes: 1 addition & 3 deletions .github/workflows/build.yml → .github/workflows/review.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: Build
name: Review

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

Expand Down

0 comments on commit 123873d

Please sign in to comment.