mirror of
https://github.com/nushell/reedline.git
synced 2024-09-11 15:55:50 +03:00
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.
This commit is contained in:
parent
698f4eb428
commit
f2ee704642
31
.github/workflows/ci.yml
vendored
31
.github/workflows/ci.yml
vendored
@ -31,48 +31,35 @@ jobs:
|
|||||||
runs-on: ${{ matrix.platform }}
|
runs-on: ${{ matrix.platform }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Setup Rust toolchain
|
- name: Setup Rust toolchain
|
||||||
uses: actions-rs/toolchain@v1
|
uses: actions-rust-lang/setup-rust-toolchain@v1.3.4
|
||||||
with:
|
|
||||||
profile: minimal
|
|
||||||
toolchain: ${{ matrix.rust }}
|
|
||||||
override: true
|
|
||||||
components: rustfmt, clippy
|
|
||||||
|
|
||||||
- uses: Swatinem/rust-cache@v1
|
- name: Setup nextest
|
||||||
with:
|
uses: taiki-e/install-action@nextest
|
||||||
key: ${{ matrix.style }}v1 # increment this to bust the cache if needed
|
|
||||||
|
|
||||||
- name: Rustfmt
|
- name: Rustfmt
|
||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1.0.1
|
||||||
with:
|
with:
|
||||||
command: fmt
|
command: fmt
|
||||||
args: --all -- --check
|
args: --all -- --check
|
||||||
|
|
||||||
- name: Build reedline
|
|
||||||
uses: actions-rs/cargo@v1
|
|
||||||
with:
|
|
||||||
command: build
|
|
||||||
args: ${{ matrix.flags }}
|
|
||||||
|
|
||||||
- name: Clippy
|
- name: Clippy
|
||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1.0.1
|
||||||
with:
|
with:
|
||||||
command: clippy
|
command: clippy
|
||||||
args: ${{ matrix.flags }} -- -D warnings
|
args: ${{ matrix.flags }} --all -- -D warnings
|
||||||
|
|
||||||
- uses: taiki-e/install-action@nextest
|
|
||||||
|
|
||||||
- name: Tests
|
- name: Tests
|
||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1.0.1
|
||||||
with:
|
with:
|
||||||
command: nextest
|
command: nextest
|
||||||
args: run --all ${{ matrix.flags }}
|
args: run --all ${{ matrix.flags }}
|
||||||
|
|
||||||
- name: Doctests
|
- name: Doctests
|
||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1.0.1
|
||||||
with:
|
with:
|
||||||
command: test
|
command: test
|
||||||
args: --doc ${{ matrix.flags }}
|
args: --doc ${{ matrix.flags }}
|
||||||
|
Loading…
Reference in New Issue
Block a user