From 69c830a6e0f11d6cdb3510d8bc3572eb8056d60d Mon Sep 17 00:00:00 2001 From: Martin Robinson Date: Tue, 4 Jul 2023 11:36:16 +0200 Subject: [PATCH] When using "try-" trigger unit tests There is currently no way to trigger unit tests using the bors-servo try infrastructure. This change makes it so that using try- triggers unit tests for that platform. This will be especially useful when testing changes for Windows before trying to land them. --- .github/workflows/linux.yml | 2 +- .github/workflows/mac.yml | 2 +- .github/workflows/windows.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index b50d0d44149..2fa7444d8ed 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -78,7 +78,7 @@ jobs: - name: Script tests run: ./mach test-scripts - name: Unit tests - if: ${{ inputs.unit-tests }} + if: ${{ inputs.unit-tests || github.ref_name == 'try-linux' }} run: python3 ./mach test-unit --release --with-${{ env.LAYOUT }} - name: Rename build timing run: cp -r target/cargo-timings target/cargo-timings-linux-${{ env.LAYOUT }} diff --git a/.github/workflows/mac.yml b/.github/workflows/mac.yml index e679881158f..030900050e5 100644 --- a/.github/workflows/mac.yml +++ b/.github/workflows/mac.yml @@ -66,7 +66,7 @@ jobs: - name: Script tests run: ./mach test-scripts - name: Unit tests - if: ${{ inputs.unit-tests }} + if: ${{ inputs.unit-tests || github.ref_name == 'try-mac' }} run: python3 ./mach test-unit --release --with-${{ env.LAYOUT }} - name: Package run: python3 ./mach package --release diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index db6f5c76856..5702efeb0c7 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -70,7 +70,7 @@ jobs: - name: Smoketest run: python mach smoketest --angle - name: Unit tests - if: ${{ inputs.unit-tests }} + if: ${{ inputs.unit-tests || github.ref_name == 'try-windows' }} run: python mach test-unit --release --with-${{ env.LAYOUT }} - name: Rename build timing run: cp C:\a\servo\servo\target\cargo-timings C:\a\servo\servo\target\cargo-timings-windows-${{ env.LAYOUT }} -Recurse