feat: test other way around

This commit is contained in:
Kasper Juul Hermansen 2023-03-18 16:02:30 +01:00
parent 8ad390f813
commit 2d171249d9
Signed by: kjuulh
GPG Key ID: 57B6E1465221F912

View File

@ -100,12 +100,6 @@ jobs:
echo "target flag is: ${{ env.TARGET_FLAGS }}" echo "target flag is: ${{ env.TARGET_FLAGS }}"
- name: Build all crates - name: Build all crates
run: ${{ env.CARGO }} build --verbose --workspace ${{ env.TARGET_FLAGS }} run: ${{ env.CARGO }} build --verbose --workspace ${{ env.TARGET_FLAGS }}
# This is useful for debugging problems when the expected build artifacts
# (like shell completions and man pages) aren't generated.
- name: Run tests - name: Run tests
# These tests should actually work, but they almost double the runtime. if: matrix.target == ''
# Every integration test spins up qemu to run 'rg', and when PCRE2 is
# enabled, every integration test is run twice: one with the default
# regex engine and once with PCRE2.
if: matrix.target != ''
run: ${{ env.CARGO }} test --verbose --workspace ${{ env.TARGET_FLAGS }} run: ${{ env.CARGO }} test --verbose --workspace ${{ env.TARGET_FLAGS }}