on master help sign in
Add job to run tests with new syntaxes/themes
commit3147f0536a1094b6534c20dc17101097e306631e authorsharkdp <davidpeter@web.de> dateSun 2 Aug 2020, 16:14 (6 years ago) parent42de486
1 file changed+26−1
.github/workflows/CICD.yml+26−1
.github/workflows/CICD.yml+26−1
@@ -14,7 +14,7 @@ jobs:
1414 runs-on: ubuntu-latest
1515 steps:
1616 - uses: actions/checkout@v1
17− - name: Install `rust` toolchain (v${{ env.MIN_SUPPORTED_RUST_VERSION }})
17+ - name: Install rust toolchain (v${{ env.MIN_SUPPORTED_RUST_VERSION }})
1818 uses: actions-rs/toolchain@v1
1919 with:
2020 toolchain: ${{ env.MIN_SUPPORTED_RUST_VERSION }}
@@ -25,6 +25,31 @@ jobs:
2525 with:
2626 command: test
2727
28+ test_with_new_syntaxes_and_themes:
29+ name: Test with new syntaxes and themes
30+ runs-on: ubuntu-latest
31+ steps:
32+ - name: Git checkout
33+ uses: actions/checkout@v1
34+ - name: Install Rust toolchain
35+ uses: actions-rs/toolchain@v1
36+ with:
37+ toolchain: stable
38+ default: true
39+ profile: minimal
40+ - name: Build and install bat
41+ uses: actions-rs/cargo@v1
42+ with:
43+ command: install
44+ args: --locked --release
45+ - name: Rebuild binary assets (syntaxes and themes)
46+ run: bash assets/create.sh
47+ - name: Run tests with new syntaxes and themes
48+ uses: actions-rs/cargo@v1
49+ with:
50+ command: test
51+ args: --release
52+
2853 build:
2954 name: Build
3055 runs-on: ${{ matrix.job.os }}