Skip to content

Commit

Permalink
ci: cancel previous runs
Browse files Browse the repository at this point in the history
Signed-off-by: David Aguilar <davvid@gmail.com>
  • Loading branch information
davvid committed Aug 22, 2023
1 parent 7ef763f commit 635720c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ on: [push, pull_request]

jobs:
check:
name: Lints and checks
name: Checks
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.11.0
- name: Checkout
uses: actions/checkout@v3
- run: rustup toolchain install stable --profile minimal --component rustfmt --component clippy --no-self-update
Expand All @@ -19,6 +21,8 @@ jobs:
name: Documentation
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.11.0
- name: Checkout
uses: actions/checkout@v3
- run: rustup toolchain install stable --profile minimal --no-self-update
Expand All @@ -29,14 +33,16 @@ jobs:
run: garden -vv doc

test:
name: Test using Rust ${{ matrix.rust }} on ${{ matrix.os }}
name: Test Rust ${{ matrix.rust }} on ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
rust: [stable]
runs-on: ${{ matrix.os }}
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.11.0
- name: Checkout
uses: actions/checkout@v3
- run: git config --global init.defaultBranch main
Expand Down

0 comments on commit 635720c

Please sign in to comment.