From f2ee704642ea7ce3bf14e55350f6b7e6e3b0fb58 Mon Sep 17 00:00:00 2001 From: Stefan Holderbach Date: Sun, 30 Oct 2022 17:05:24 +0100 Subject: [PATCH] Update workflow to new actions (alternative) (#505) Alternative to #503 Using `actions-rust-lang` instead of `actions-rs` for setup. (nushell uses them for setup with integrated caching) Remove build stage as this should also be covered by test. clippy --all to see if this checks the examples as well. --- .github/workflows/ci.yml | 31 +++++++++---------------------- 1 file changed, 9 insertions(+), 22 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 92ce34f..cd72c8e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,48 +31,35 @@ jobs: runs-on: ${{ matrix.platform }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Setup Rust toolchain - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: ${{ matrix.rust }} - override: true - components: rustfmt, clippy + uses: actions-rust-lang/setup-rust-toolchain@v1.3.4 - - uses: Swatinem/rust-cache@v1 - with: - key: ${{ matrix.style }}v1 # increment this to bust the cache if needed + - name: Setup nextest + uses: taiki-e/install-action@nextest - name: Rustfmt - uses: actions-rs/cargo@v1 + uses: actions-rs/cargo@v1.0.1 with: command: fmt args: --all -- --check - - name: Build reedline - uses: actions-rs/cargo@v1 - with: - command: build - args: ${{ matrix.flags }} - - name: Clippy - uses: actions-rs/cargo@v1 + uses: actions-rs/cargo@v1.0.1 with: command: clippy - args: ${{ matrix.flags }} -- -D warnings + args: ${{ matrix.flags }} --all -- -D warnings - - uses: taiki-e/install-action@nextest - name: Tests - uses: actions-rs/cargo@v1 + uses: actions-rs/cargo@v1.0.1 with: command: nextest args: run --all ${{ matrix.flags }} - name: Doctests - uses: actions-rs/cargo@v1 + uses: actions-rs/cargo@v1.0.1 with: command: test args: --doc ${{ matrix.flags }}