Upgrade cargo crate #120
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: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
rustfmt: | |
runs-on: macOS-latest | |
name: rustfmt | |
steps: | |
- uses: actions/checkout@v2 | |
- name: install stable toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
profile: minimal | |
components: rustfmt | |
override: true | |
- name: install rustfmt | |
run: rustup component add rustfmt | |
- name: cargo fmt | |
uses: actions-rs/cargo@v1 | |
with: | |
command: fmt | |
args: --all -- --check | |
test-stable: | |
runs-on: macOS-latest | |
name: cargo test stable | |
steps: | |
- uses: actions/checkout@v2 | |
- name: install cairo | |
run: brew install cairo | |
if: contains(matrix.os, 'mac') | |
- name: install stable toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
components: clippy | |
profile: minimal | |
override: true | |
- name: cargo clippy | |
uses: actions-rs/cargo@v1 | |
with: | |
command: clippy | |
args: -- -D warnings | |
- name: cargo test | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test |