mirror of
https://github.com/facebookexperimental/reverie.git
synced 2025-01-23 05:06:23 +00:00
f492da1e30
Summary:
The clippy action has been in a broken state since 1438ff0f2e
. This fixes the GitHub action and all of the clippy warnings.
Pull Request resolved: https://github.com/facebookexperimental/reverie/pull/20
Reviewed By: VladimirMakaev
Differential Revision: D47322336
Pulled By: jasonwhite
fbshipit-source-id: 88f8d16cc81269448c2425d8b56bcc3623e04b31
69 lines
1.6 KiB
YAML
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 -- -Dclippy::all
|