2
0
mirror of https://github.com/sharkdp/bat synced 2024-11-04 18:00:24 +00:00

Add job to run tests with new syntaxes/themes

This commit is contained in:
sharkdp 2020-08-02 16:14:25 +02:00 committed by David Peter
parent 42de486e94
commit 3147f0536a

View File

@ -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 }}