mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-01-10 07:08:05 -05:00
github: Run a clippy check on push and PR.
This commit is contained in:
16
.github/workflows/rust-build.yml
vendored
16
.github/workflows/rust-build.yml
vendored
@@ -4,22 +4,32 @@ on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
compile-and-test:
|
||||
runs-on: ubuntu-20.04
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Install Rust
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: stable
|
||||
override: true
|
||||
components: rustfmt, clippy
|
||||
|
||||
- name: Install Dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install build-essential clang libclang-dev llvm-dev libudev-dev pkg-config
|
||||
sudo apt update
|
||||
sudo apt -y install build-essential clang libclang-dev llvm-dev libudev-dev pkg-config
|
||||
|
||||
- name: Create config directory
|
||||
run: |
|
||||
mkdir -p ~/.config/darkfi
|
||||
|
||||
- name: Test with all features
|
||||
run: |
|
||||
cargo test --release --all-features
|
||||
|
||||
- name: Clippy check
|
||||
uses: actions-rs/clippy-check@v1
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
args: --release --all-features
|
||||
|
||||
Reference in New Issue
Block a user