chore: use `cargo-make` in the CI as well

pull/430/head
Florian Dehau 4 years ago
parent 9cdff275cb
commit 0b78fb9201

@ -18,42 +18,33 @@ jobs:
profile: default profile: default
toolchain: ${{ matrix.rust }} toolchain: ${{ matrix.rust }}
override: true override: true
- name: "Format" - name: "Install cargo-make"
uses: actions-rs/cargo@v1 uses: actions-rs/cargo@v1
with: with:
command: fmt command: install
args: --all -- --check args: cargo-make
- name: "Check" - name: "Format"
uses: actions-rs/cargo@v1
with:
command: check
args: --examples
- name: "Check (crossterm)"
uses: actions-rs/cargo@v1
with:
command: check
args: --no-default-features --features=crossterm --example crossterm_demo
- name: "Check (rustbox)"
uses: actions-rs/cargo@v1 uses: actions-rs/cargo@v1
with: with:
command: test command: make
args: --no-default-features --features=rustbox --example rustbox_demo args: fmt
- name: "Check (curses)" - name: "Check"
uses: actions-rs/cargo@v1 uses: actions-rs/cargo@v1
with: with:
command: check command: make
args: --no-default-features --features=curses --example curses_demo args: check
- name: "Test" - name: "Test"
uses: actions-rs/cargo@v1 uses: actions-rs/cargo@v1
with: with:
command: test command: make
args: test
env: env:
RUST_BACKTRACE: full RUST_BACKTRACE: full
- name: "Clippy" - name: "Clippy"
uses: actions-rs/cargo@v1 uses: actions-rs/cargo@v1
with: with:
command: clippy command: make
args: --all-targets --all-features -- -D warnings args: clippy
windows: windows:
name: Windows name: Windows
runs-on: windows-latest runs-on: windows-latest
@ -67,15 +58,30 @@ jobs:
profile: default profile: default
toolchain: ${{ matrix.rust }} toolchain: ${{ matrix.rust }}
override: true override: true
- name: "Check (crossterm)" - name: "Install cargo-make"
uses: actions-rs/cargo@v1
with:
command: install
args: cargo-make
- name: "Format"
uses: actions-rs/cargo@v1 uses: actions-rs/cargo@v1
with: with:
command: check command: make
args: --no-default-features --features=crossterm --example crossterm_demo args: fmt
- name: "Test (crossterm)" - name: "Check"
uses: actions-rs/cargo@v1 uses: actions-rs/cargo@v1
with: with:
command: test command: make
args: --no-default-features --features=crossterm --tests --examples args: check
- name: "Test"
uses: actions-rs/cargo@v1
with:
command: make
args: test
env: env:
RUST_BACKTRACE: full RUST_BACKTRACE: full
- name: "Clippy"
uses: actions-rs/cargo@v1
with:
command: make
args: clippy

Loading…
Cancel
Save