Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Nashtare committed Apr 17, 2024
1 parent 9aade31 commit cf771a4
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/cI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@ name: Continuous Integration
on:
push:
branches:
- master
- main
pull_request:
- "**"
workflow_dispatch:
branches:
- "**"

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
Expand All @@ -17,11 +21,11 @@ jobs:
clippy:
runs-on: ubuntu-latest
timeout-minutes: 10
if: "! contains(toJSON(github.event.commits.*.message), '[skip-ci]')"
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
uses: dtolnay/rust-toolchain@nightly
with:
toolchain: nightly-2024-02-01
components: clippy
- uses: Swatinem/rust-cache@v2
with:
Expand All @@ -33,22 +37,22 @@ jobs:
rustfmt:
runs-on: ubuntu-latest
timeout-minutes: 10
if: "! contains(toJSON(github.event.commits.*.message), '[skip-ci]')"
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
uses: dtolnay/rust-toolchain@nightly
with:
toolchain: nightly-2024-02-01
components: rustfmt
- run: cargo fmt --all --check

test:
runs-on: ubuntu-latest
timeout-minutes: 20
timeout-minutes: 10
if: "! contains(toJSON(github.event.commits.*.message), '[skip-ci]')"
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
uses: dtolnay/rust-toolchain@nightly
with:
toolchain: nightly-2024-02-01
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
Expand Down

0 comments on commit cf771a4

Please sign in to comment.