Skip to content

Commit

Permalink
fix workflows maybe
Browse files Browse the repository at this point in the history
  • Loading branch information
mina86 committed Aug 7, 2023
1 parent 1cbc5fa commit 9301ba5
Showing 1 changed file with 7 additions and 20 deletions.
27 changes: 7 additions & 20 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,49 +9,36 @@ on:
- master

jobs:
misc:
name: Miscellaneous checks
stable:
name: Checks on stable
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
toolchain: stable
components: rustfmt

- name: Check formatting
- name: Check Formatting
run: cargo fmt --all --check

- name: Check bans etc.
- run cargo deny check advisories ban sources

stable:
name: Tests on stable
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable

- name: Run tests
run: cargo test

nightly:
name: Tests on nightly
name: Checks on nightly
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
components: miri
components: rustfmt

- name: Run tests
run: cargo test

- name: Run tests with Miri
run: STRESS_TEST_ITERATIONS=5 cargo miri test
run: cargo miri test

0 comments on commit 9301ba5

Please sign in to comment.