chore: update 'yansi' to 1.0.0-rc #141
Workflow file for this run
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
on: [push, pull_request] | |
name: check | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
# Test, and also do other things like doctests and examples | |
detailed-test: | |
name: Test main target | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v3 | |
- name: Cache build files | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cargo/bin/ | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
~/.cargo/git/db/ | |
target/ | |
key: detailed-test-${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml') }}-v3 | |
- name: Install toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
override: true | |
profile: minimal | |
components: clippy, rustfmt | |
- name: Install toolchain (nightly) | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly | |
override: false | |
profile: minimal | |
- name: Run check script | |
run: ./scripts/check | |
# Test on all supported platforms | |
test: | |
needs: detailed-test | |
name: Test all other targets | |
strategy: | |
matrix: | |
os: | |
- ubuntu-22.04 | |
- windows-2022 | |
rust: | |
- stable | |
- beta | |
- 1.54.0 | |
experimental: | |
- false | |
# Run a canary test on nightly that's allowed to fail | |
include: | |
- os: ubuntu-22.04 | |
rust: nightly | |
experimental: true | |
# Don't bother retesting stable linux, we did it in the comprehensive test | |
exclude: | |
- os: ubuntu-22.04 | |
rust: stable | |
experimental: false | |
runs-on: ${{ matrix.os }} | |
continue-on-error: ${{ matrix.experimental }} | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v3 | |
- name: Cache build files | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cargo/bin/ | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
~/.cargo/git/db/ | |
target/ | |
key: test-${{ matrix.os }}-${{ matrix.rust }}-cargo-${{ hashFiles('**/Cargo.toml') }}-v2 | |
- name: Install toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{ matrix.rust }} | |
override: true | |
profile: minimal | |
- name: Run tests | |
run: cargo test --package pretty_assertions |