mirror of
https://github.com/RGBCube/cstree
synced 2025-07-27 09:07:44 +00:00
Update CI workflows (#53)
This commit is contained in:
parent
30597dbb8b
commit
b4d07fbf65
2 changed files with 24 additions and 33 deletions
55
.github/workflows/main.yml
vendored
55
.github/workflows/main.yml
vendored
|
@ -28,29 +28,25 @@ jobs:
|
|||
rust: [stable, nightly]
|
||||
|
||||
steps:
|
||||
# setup
|
||||
- uses: actions/checkout@v3
|
||||
- uses: hecrj/setup-rust-action@v1
|
||||
with:
|
||||
rust-version: ${{ matrix.rust }}
|
||||
- uses: taiki-e/install-action@nextest
|
||||
|
||||
- uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: nextest
|
||||
args: run --profile ci-default-features --tests --examples --verbose
|
||||
- uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: nextest
|
||||
args: run --profile ci-all-features --tests --examples --verbose --all-features
|
||||
- uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: nextest
|
||||
args: run --profile ci-all-features-release --tests --examples --verbose --all-features --release
|
||||
- uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: test
|
||||
args: --doc --verbose --all-features
|
||||
- uses: actions/upload-artifact@v2 # upload test results
|
||||
# tests
|
||||
- name: Library Tests | Default Features
|
||||
run: cargo nextest run --profile ci-default-features --tests --examples --verbose
|
||||
- name: Library Tests | All Features
|
||||
run: cargo nextest run --profile ci-all-features --tests --examples --verbose --all-features
|
||||
- name: Library Tests | All Features (Release)
|
||||
run: cargo nextest run --profile ci-all-features-release --tests --examples --verbose --all-features --release
|
||||
- name: Doc Tests
|
||||
run: cargo test --doc --verbose --all-features
|
||||
|
||||
# upload test results
|
||||
- uses: actions/upload-artifact@v3
|
||||
if: success() || failure() # run this step even if previous step failed
|
||||
with:
|
||||
name: test-results-${{ matrix.rust }}-${{ matrix.os }}
|
||||
|
@ -60,17 +56,12 @@ jobs:
|
|||
name: Check
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions-rs/toolchain@v1
|
||||
- uses: actions/checkout@v3
|
||||
- uses: hecrj/setup-rust-action@v1
|
||||
with:
|
||||
profile: minimal
|
||||
toolchain: nightly
|
||||
override: true
|
||||
|
||||
- uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: check
|
||||
args: --all-targets --all-features
|
||||
rust-version: nightly
|
||||
- name: Cargo Check
|
||||
run: cargo check --all-targets --all-features
|
||||
|
||||
clippy:
|
||||
name: Clippy
|
||||
|
@ -80,7 +71,7 @@ jobs:
|
|||
RUSTFLAGS: -Dwarnings
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
- uses: hecrj/setup-rust-action@v1
|
||||
with:
|
||||
components: clippy
|
||||
|
@ -91,7 +82,7 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
- uses: hecrj/setup-rust-action@v1
|
||||
with:
|
||||
rust-version: nightly
|
||||
|
@ -105,7 +96,7 @@ jobs:
|
|||
RUSTDOCFLAGS: -Dwarnings --cfg doc_cfg
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
- uses: hecrj/setup-rust-action@v1
|
||||
with:
|
||||
rust-version: nightly
|
||||
|
@ -121,7 +112,7 @@ jobs:
|
|||
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
- uses: hecrj/setup-rust-action@v1
|
||||
with:
|
||||
rust-version: nightly
|
||||
|
@ -138,7 +129,7 @@ jobs:
|
|||
matrix:
|
||||
sanitizer: [address, memory, thread, leak]
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
- uses: hecrj/setup-rust-action@v1
|
||||
with:
|
||||
rust-version: nightly
|
||||
|
|
2
.github/workflows/test-report.yml
vendored
2
.github/workflows/test-report.yml
vendored
|
@ -11,6 +11,6 @@ jobs:
|
|||
- uses: dorny/test-reporter@v1
|
||||
with:
|
||||
artifact: /test-results-([a-z]*)-(.*)/ # artifact name: test-results-<toolchain>-<os>
|
||||
name: cargo nextest results $1 $2 # Name of the check run which will be created
|
||||
name: Results | $1 $2 # Name of the check run which will be created
|
||||
path: './**/junit-*.xml' # Path to test results (inside artifact .zip)
|
||||
reporter: java-junit # Format of test results
|
Loading…
Add table
Add a link
Reference in a new issue