-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f8ffc98
commit 95206d1
Showing
1 changed file
with
39 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,25 +12,42 @@ env: | |
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
build_stable: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install latest stable Rust | ||
run: rustup install stable | ||
- name: Check crate builds on stable | ||
run: cargo build --features serde,numtraits,rand,arbitrary && cargo build | ||
test_nightly: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install latest nightly Rust | ||
run: rustup install nightly | ||
- name: Set nightly as default | ||
run: rustup default nightly | ||
- name: Build | ||
run: cargo build --all-features --verbose | ||
- name: Run tests | ||
run: sh scripts/run_all_tests.sh | ||
- name: Run doc tests | ||
run: cargo test --all-features --doc && cargo test --doc | ||
codecov: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install nightly toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: nightly | ||
override: true | ||
- name: Run cargo-tarpaulin | ||
uses: actions-rs/[email protected] | ||
with: | ||
args: "--all-features" | ||
build_stable: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install latest stable Rust | ||
run: rustup install stable | ||
- name: Check crate builds on stable | ||
run: cargo build --features serde,numtraits,rand,arbitrary && cargo build | ||
- name: Upload to codecov | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
test_nightly: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install latest nightly Rust | ||
run: rustup install nightly | ||
- name: Set nightly as default | ||
run: rustup default nightly | ||
- name: Build | ||
run: cargo build --all-features --verbose | ||
- name: Run tests | ||
run: sh scripts/run_all_tests.sh | ||
- name: Run doc tests | ||
run: cargo test --all-features --doc && cargo test --doc |