fix(ci): speed up ci and fix some typos
This commit is contained in:
parent
fa6c76ea2d
commit
f036a98124
1 changed files with 25 additions and 14 deletions
39
.github/workflows/rust.yml
vendored
39
.github/workflows/rust.yml
vendored
|
|
@ -19,32 +19,43 @@ jobs:
|
||||||
- name: Add WASM target
|
- name: Add WASM target
|
||||||
run: rustup target add wasm32-wasi
|
run: rustup target add wasm32-wasi
|
||||||
- name: Install cargo-make
|
- name: Install cargo-make
|
||||||
run: cargo install --force cargo-make
|
uses: actions-rs/cargo@v1
|
||||||
- name: Build & Test
|
with:
|
||||||
run: cargo make
|
command: install
|
||||||
|
args: --debug cargo-make
|
||||||
|
- name: Run Tests
|
||||||
|
uses: actions-rs/cargo@v1
|
||||||
|
with:
|
||||||
|
command: make
|
||||||
|
|
||||||
format:
|
format:
|
||||||
name: Check Formatting
|
name: Check Formatting
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- name: Add WASM target
|
|
||||||
run: rustup target add wasm32-wasi
|
|
||||||
- name: Install cargo-make
|
- name: Install cargo-make
|
||||||
run: cargo install --force cargo-make
|
uses: actions-rs/cargo@v1
|
||||||
|
with:
|
||||||
|
command: install
|
||||||
|
args: --debug cargo-make
|
||||||
- name: Check Format
|
- name: Check Format
|
||||||
run: cargo make check-format
|
uses: actions-rs/cargo@v1
|
||||||
|
with:
|
||||||
|
command: make
|
||||||
|
args: check-format
|
||||||
|
|
||||||
clippy:
|
clippy:
|
||||||
name: Check For Clippy Lints
|
name: Check For Clippy Lints
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- name: Add WASM target
|
|
||||||
run: rustup target add wasm32-wasi
|
|
||||||
- name: Install cargo-make
|
- name: Install cargo-make
|
||||||
run: cargo install --force cargo-make
|
uses: actions-rs/cargo@v1
|
||||||
- name: Check Format
|
with:
|
||||||
run: cargo make clippy -D clippy::all
|
command: install
|
||||||
|
args: --debug cargo-make
|
||||||
|
- name: Check Lints
|
||||||
|
uses: actions-rs/cargo@v1
|
||||||
|
with:
|
||||||
|
command: make
|
||||||
|
args: clippy -D clippy::all
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue