From 0b78fb9201fcde2ea26ab9178269ac61335cf967 Mon Sep 17 00:00:00 2001 From: Florian Dehau Date: Sun, 6 Dec 2020 16:27:54 +0100 Subject: [PATCH] chore: use `cargo-make` in the CI as well --- .github/workflows/ci.yml | 62 ++++++++++++++++++++++------------------ 1 file changed, 34 insertions(+), 28 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9357407..c267ffa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,42 +18,33 @@ jobs: profile: default toolchain: ${{ matrix.rust }} override: true - - name: "Format" + - name: "Install cargo-make" uses: actions-rs/cargo@v1 with: - command: fmt - args: --all -- --check - - name: "Check" - 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)" + command: install + args: cargo-make + - name: "Format" uses: actions-rs/cargo@v1 with: - command: test - args: --no-default-features --features=rustbox --example rustbox_demo - - name: "Check (curses)" + command: make + args: fmt + - name: "Check" uses: actions-rs/cargo@v1 with: - command: check - args: --no-default-features --features=curses --example curses_demo + command: make + args: check - name: "Test" uses: actions-rs/cargo@v1 with: - command: test + command: make + args: test env: RUST_BACKTRACE: full - name: "Clippy" uses: actions-rs/cargo@v1 with: - command: clippy - args: --all-targets --all-features -- -D warnings + command: make + args: clippy windows: name: Windows runs-on: windows-latest @@ -67,15 +58,30 @@ jobs: profile: default toolchain: ${{ matrix.rust }} 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 with: - command: check - args: --no-default-features --features=crossterm --example crossterm_demo - - name: "Test (crossterm)" + command: make + args: fmt + - name: "Check" uses: actions-rs/cargo@v1 with: - command: test - args: --no-default-features --features=crossterm --tests --examples + command: make + args: check + - name: "Test" + uses: actions-rs/cargo@v1 + with: + command: make + args: test env: RUST_BACKTRACE: full + - name: "Clippy" + uses: actions-rs/cargo@v1 + with: + command: make + args: clippy