Skip to content

Commit

Permalink
updated ci
Browse files Browse the repository at this point in the history
  • Loading branch information
fulmicoton committed Jan 16, 2024
1 parent f3f35f7 commit d86cf9a
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ on:
- "scuttlebutt/**"
- "scuttlebutt-*/**"


env:
RUSTFLAGS: -Dwarnings
RUST_BACKTRACE: 1
Expand All @@ -21,17 +20,22 @@ jobs:
check:
name: Check (fmt, dependency check, clippy, test)
runs-on: ubuntu-latest
container: public.ecr.aws/l6o9a3f9/quickwit-builder:latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Install rustup
run: curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain none -y
- name: Setup stable Rust Toolchain
run: rustup show
- name: Setup nightly Rust Toolchain (for rustfmt)
run: rustup toolchain install nightly
- uses: actions/cache@v2
with:
path: |
~/.cargo
target/
key: ${{ runner.os }}-cargolint-${{ hashFiles('Cargo.lock') }}
- name: rustfmt
run: cargo +nightly fmt --all -- --check
run: cargo fmt +nightly --all -- --check
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit d86cf9a

Please sign in to comment.