Merge pull request #46 from chriskrycho/dependabot/cargo/crossbeam-ut… #73
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: CI | |
on: | |
push: | |
branches: [main] | |
# Don't run tests when only text files/docs/etc. were modified | |
paths-ignore: | |
- "COPYRIGHT" | |
- "LICENSE-*" | |
- "**.md" | |
- "**.txt" | |
pull_request: | |
branches: [main] | |
# Don't run tests when only text files/docs/etc. were modified | |
paths-ignore: | |
- "COPYRIGHT" | |
- "LICENSE-*" | |
- "**.md" | |
- "**.txt" | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set up cargo | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
components: clippy, rustfmt | |
- name: Check formatting | |
uses: actions-rs/cargo@v1 | |
with: | |
command: fmt | |
args: --all --quiet -- --check | |
- name: Lint with clippy | |
uses: actions-rs/cargo@v1 | |
with: | |
command: clippy | |
build: | |
runs-on: ubuntu-latest | |
needs: lint | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set up cargo | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
components: clippy | |
- name: Build | |
run: cargo build --verbose | |
- name: Run tests | |
run: cargo test --verbose |