Skip to content

Merge pull request #46 from chriskrycho/dependabot/cargo/crossbeam-ut… #73

Merge pull request #46 from chriskrycho/dependabot/cargo/crossbeam-ut…

Merge pull request #46 from chriskrycho/dependabot/cargo/crossbeam-ut… #73

Workflow file for this run

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