Merge pull request #292 from moka-rs/fix-ci-2023-07-v010 #684
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
name: Skeptic and Trybuild | |
on: | |
push: | |
paths-ignore: | |
- '.devcontainer/**' | |
- '.gitpod.yml' | |
- '.vscode/**' | |
schedule: | |
# Run against the last commit on the default branch on Friday at 9pm (UTC?) | |
- cron: '0 21 * * 5' | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
rust: | |
- stable | |
- beta | |
steps: | |
- name: Checkout Moka | |
uses: actions/checkout@v2 | |
- name: Install Rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: ${{ matrix.rust }} | |
override: true | |
components: rustfmt, clippy | |
- uses: Swatinem/rust-cache@v1 | |
- name: cargo clean | |
uses: actions-rs/cargo@v1 | |
with: | |
command: clean | |
- name: Run tests (no features) | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --release | |
env: | |
RUSTFLAGS: '--cfg skeptic' | |
- name: Run tests (release, sync and future) | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --release --features 'sync, future' | |
env: | |
RUSTFLAGS: '--cfg skeptic' | |
- name: Run tests (sync and future, without atomic64 and quanta) | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --release --no-default-features --features 'sync, future' | |
env: | |
RUSTFLAGS: '--cfg skeptic' | |
- name: Run compile error tests (sync and future features, trybuild) | |
uses: actions-rs/cargo@v1 | |
if: ${{ matrix.rust == 'stable' }} | |
with: | |
command: test | |
args: ui_trybuild --release --features 'sync, future' | |
env: | |
RUSTFLAGS: '--cfg trybuild' |