Update criterion requirement from 0.3 to 0.5 #86
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: stable | |
on: | |
# Build master branch only | |
push: | |
branches: | |
- master | |
# Build pull requests targeting master branch only | |
pull_request: | |
branches: | |
- master | |
jobs: | |
test: | |
name: stable on ${{ matrix.os }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-2019, macOS-latest] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: Install Rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
components: rustfmt, clippy | |
- name: Check formatting | |
uses: actions-rs/cargo@v1 | |
with: | |
command: fmt | |
args: --all -- --check | |
- name: Lint the code | |
uses: actions-rs/cargo@v1 | |
with: | |
command: clippy | |
args: --all --all-features -- -D warnings | |
- name: Check default features | |
uses: actions-rs/cargo@v1 | |
with: | |
command: check | |
args: --all | |
- name: Check all features | |
uses: actions-rs/cargo@v1 | |
with: | |
command: check | |
args: --all --all-features | |
- name: Test default features | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --all -- --nocapture | |
- name: Test parser feature | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --all --all-features -- --nocapture | |
- name: Test publishing (dry run) | |
uses: actions-rs/cargo@v1 | |
with: | |
command: publish | |
args: --manifest-path anes/Cargo.toml --dry-run |