Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Lint

on:
push:
branches:
- master
pull_request:

jobs:
lint:
uses: trailofbits/.github/.github/workflows/[email protected]
with:
type: rust
cargo-sort: true
20 changes: 0 additions & 20 deletions .github/workflows/ci.yml → .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,6 @@ concurrency:
cancel-in-progress: true

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Install LLVM
run: |
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 14
- uses: actions/checkout@v2
- name: Format
run: cargo fmt && git diff --exit-code
- name: Lint
run: |
rustup update
rustup component add clippy
cargo clippy -- -D warnings -D clippy::pedantic -D clippy::nursery -D clippy::expect_used -D clippy::panic -D clippy::unwrap_used
- name: Cargo sort
run: |
cargo install cargo-sort
cargo sort -c
test:
runs-on: ubuntu-latest
steps:
Expand Down