diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5b49ab3..c8d7cd5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,16 +17,21 @@ jobs: - name: Install cargo-llvm-cov uses: taiki-e/install-action@cargo-llvm-cov - name: Run tests on Linux or macOS - run: | - cargo llvm-cov --color always --lcov --output-path lcov.info --features=search,termwiz,termion,arbitrary - cargo llvm-cov --color always --no-run + run: cargo llvm-cov --color always --lcov --output-path lcov.info --features=search,termwiz,termion,arbitrary if: ${{ matrix.os != 'windows-latest' }} - name: Run tests on Windows - run: | - cargo llvm-cov --color always --lcov --output-path lcov.info --features=search,termwiz,arbitrary - cargo llvm-cov --color always --no-run + run: cargo llvm-cov --color always --lcov --output-path lcov.info --features=search,termwiz,arbitrary if: ${{ matrix.os == 'windows-latest' }} - - run: cargo llvm-cov --color always --lcov --output-path lcov-clipboard.info --features=clipboard clipboard::tests:: + - run: cargo llvm-cov --color always --no-run + - run: cargo test --features=clipboard 'clipboard::tests::' + - name: Run clipboard tests on Linux + uses: coactions/setup-xvfb@v1 + with: + run: cargo test --features=clipboard 'clipboard::tests::' + if: ${{ matrix.os == 'ubuntu-latest' }} + - name: Run clipboard tests on Windows or macOS + run: cargo test --features=clipboard 'clipboard::tests::' + if: ${{ matrix.os != 'ubuntu-latest' }} - run: cargo test --no-default-features --features=tuirs-crossterm,search -- --skip .rs - run: cargo test --no-default-features --features=tuirs-termion,search -- --skip .rs if: ${{ matrix.os != 'windows-latest' }} @@ -34,7 +39,7 @@ jobs: - run: cargo test --no-default-features --features=tuirs-no-backend,search -- --skip .rs - uses: codecov/codecov-action@v3 with: - files: lcov.info,lcov-clipboard.info + files: lcov.info lint: runs-on: ubuntu-latest steps: