Skip to content

Commit

Permalink
CI: Uses Clippy nightly for now to avoid the stable Clippy bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Tpt committed Dec 5, 2022
1 parent 66635b9 commit 9ec634a
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,30 @@

name: build

on: [push, pull_request]
on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: "0 0 * * 0"

jobs:
fmt:
name: fmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: rustup update
- run: rustup component add rustfmt
- run: rustup update && rustup component add rustfmt
- run: cargo fmt -- --check

clippy:
name: clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: rustup update
- run: rustup component add clippy
- run: rustup update && rustup toolchain default nightly && rustup component add clippy
- run: cargo clippy --all --all-targets

test:
Expand All @@ -29,7 +34,6 @@ jobs:
with:
submodules: true
- run: rustup update
- run: cargo build
- run: cargo test --verbose --all --all-features
env:
RUST_BACKTRACE: 1
Expand Down

0 comments on commit 9ec634a

Please sign in to comment.