on master help sign in
Add job to run tests with new syntaxes/themes
3147f05sharkdp
.github/workflows/CICD.yml+26−1
@@ -14,7 +14,7 @@ jobs:
14 runs-on: ubuntu-latest
14 runs-on: ubuntu-latest
15 steps:
15 steps:
16 - uses: actions/checkout@v1
16 - 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 }})
18 uses: actions-rs/toolchain@v1
18 uses: actions-rs/toolchain@v1
19 with:
19 with:
20 toolchain: ${{ env.MIN_SUPPORTED_RUST_VERSION }}
20 toolchain: ${{ env.MIN_SUPPORTED_RUST_VERSION }}
@@ -25,6 +25,31 @@ jobs:
25 with:
25 with:
26 command: test
26 command: test
27
27
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+
28 build:
53 build:
29 name: Build
54 name: Build
30 runs-on: ${{ matrix.job.os }}
55 runs-on: ${{ matrix.job.os }}