From ca8a194e7c7cf436b2213f9f3a517ae00b2dce33 Mon Sep 17 00:00:00 2001 From: Andrew Chin Date: Wed, 6 Jul 2022 21:30:11 -0400 Subject: [PATCH] Run cargo test under a faketty --- .github/workflows/main.yml | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1c6f841..edbf97a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,8 +10,8 @@ on: - master jobs: - test: - name: Test + build: + name: Build runs-on: ${{ matrix.os }} strategy: fail-fast: false @@ -55,3 +55,21 @@ jobs: - name: cargo build (i686) run: cargo +${{ matrix.toolchain }} check --target i686-unknown-linux-gnu if: contains(matrix.os, 'ubuntu') + + test: + name: Test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + - uses: actions-rs/cargo@v1 + name: Install faketty + with: + command: install + args: faketty + + - name: Cargo test (under faketty) + run: faketty cargo test -- --nocapture +