summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/rust.yml39
1 files changed, 25 insertions, 14 deletions
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml
index 29bda75ea..8451963ba 100644
--- a/.github/workflows/rust.yml
+++ b/.github/workflows/rust.yml
@@ -19,32 +19,43 @@ jobs:
- name: Add WASM target
run: rustup target add wasm32-wasi
- name: Install cargo-make
- run: cargo install --force cargo-make
- - name: Build & Test
- run: cargo make
+ uses: actions-rs/cargo@v1
+ with:
+ command: install
+ args: --debug cargo-make
+ - name: Run Tests
+ uses: actions-rs/cargo@v1
+ with:
+ command: make
format:
name: Check Formatting
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v2
- - name: Add WASM target
- run: rustup target add wasm32-wasi
- 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
- run: cargo make check-format
+ uses: actions-rs/cargo@v1
+ with:
+ command: make
+ args: check-format
clippy:
name: Check For Clippy Lints
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v2
- - name: Add WASM target
- run: rustup target add wasm32-wasi
- name: Install cargo-make
- run: cargo install --force cargo-make
- - name: Check Format
- run: cargo make clippy -D clippy::all
+ uses: actions-rs/cargo@v1
+ with:
+ command: install
+ args: --debug cargo-make
+ - name: Check Lints
+ uses: actions-rs/cargo@v1
+ with:
+ command: make
+ args: clippy -D clippy::all