reverie/.github/workflows/ci.yml
Jason White 9f52ff6126 ci: Make clippy less strict (#29)
Summary:
The clippy errors with `clippy::all` aren't too helpful. Plus, with building on nightly, new lints often break CI.

Pull Request resolved: https://github.com/facebookexperimental/reverie/pull/29

Reviewed By: asm89

Differential Revision: D53796464

Pulled By: jasonwhite

fbshipit-source-id: d90323da824a97976c62f46c72aa7c611d31e359
2024-02-15 10:09:51 -08:00

69 lines
1.6 KiB
YAML

name: ci
on:
push:
pull_request:
jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- name: Install libunwind-dev
run: sudo apt-get install -y libunwind-dev
- name: Checkout sources
uses: actions/checkout@v2
- name: Install nightly toolchain
uses: dtolnay/rust-toolchain@nightly
- name: Run cargo check
run: cargo check --all-features
test:
name: Test Suite
runs-on: ubuntu-latest
steps:
- name: Install libunwind-dev
run: sudo apt-get install -y libunwind-dev
- name: Checkout sources
uses: actions/checkout@v2
- name: Install nightly toolchain
uses: dtolnay/rust-toolchain@nightly
- name: Run cargo test
run: cargo test --all-features -- --test-threads=1
## Currently disabled because internal version of rustfmt produces different
## formatting.
# rustfmt:
# name: Check format
# runs-on: ubuntu-latest
# steps:
# - name: Checkout sources
# uses: actions/checkout@v2
#
# - name: Install nightly toolchain
# uses: dtolnay/rust-toolchain@nightly
# with:
# components: rustfmt
#
# - name: Run cargo fmt
# run: cargo fmt --all -- --check
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- name: Install libunwind-dev
run: sudo apt-get install -y libunwind-dev
- uses: actions/checkout@v2
- uses: dtolnay/rust-toolchain@nightly
with:
components: clippy
- name: Run cargo clippy
run: cargo clippy --all-features