From 3147f0536a1094b6534c20dc17101097e306631e Mon Sep 17 00:00:00 2001 From: sharkdp Date: Sun, 2 Aug 2020 16:14:25 +0200 Subject: [PATCH] Add job to run tests with new syntaxes/themes --- .github/workflows/CICD.yml | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/.github/workflows/CICD.yml b/.github/workflows/CICD.yml index c6cb973f..7bcb5b0e 100644 --- a/.github/workflows/CICD.yml +++ b/.github/workflows/CICD.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - - name: Install `rust` toolchain (v${{ env.MIN_SUPPORTED_RUST_VERSION }}) + - name: Install rust toolchain (v${{ env.MIN_SUPPORTED_RUST_VERSION }}) uses: actions-rs/toolchain@v1 with: toolchain: ${{ env.MIN_SUPPORTED_RUST_VERSION }} @@ -25,6 +25,31 @@ jobs: with: command: test + test_with_new_syntaxes_and_themes: + name: Test with new syntaxes and themes + runs-on: ubuntu-latest + steps: + - name: Git checkout + uses: actions/checkout@v1 + - name: Install Rust toolchain + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + default: true + profile: minimal + - name: Build and install bat + uses: actions-rs/cargo@v1 + with: + command: install + args: --locked --release + - name: Rebuild binary assets (syntaxes and themes) + run: bash assets/create.sh + - name: Run tests with new syntaxes and themes + uses: actions-rs/cargo@v1 + with: + command: test + args: --release + build: name: Build runs-on: ${{ matrix.job.os }}