From 6c48bd67967d385d0c29b14b628459a9a298224d Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Mon, 16 Dec 2024 23:45:29 +0100 Subject: [PATCH] Run GUI tests as a separate testsuite --- .github/workflows/main.yml | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6a72e22297..efc68a3fc0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -50,17 +50,6 @@ jobs: - uses: actions/checkout@v4 - name: Install Rust run: bash ci/install-rust.sh ${{ matrix.rust }} ${{ matrix.target }} - - name: Install npm - if: matrix.os != 'windows-latest' - uses: actions/setup-node@v3 - with: - node-version: 20 - - name: Install browser-ui-test - if: matrix.os != 'windows-latest' - run: npm install browser-ui-test@"${BROWSER_UI_TEST_VERSION}" - - name: Build and run tests (+ GUI) - if: matrix.os != 'windows-latest' - run: cargo test --locked --target ${{ matrix.target }} --test gui - name: Build and run tests run: cargo test --locked --target ${{ matrix.target }} - name: Test no default @@ -84,6 +73,22 @@ jobs: run: rustup update stable && rustup default stable && rustup component add rustfmt - run: cargo fmt --check + gui: + name: GUI tests + runs-on: ubuntu-latest + steps: + - name: Install npm + uses: actions/setup-node@v3 + with: + node-version: 20 + - name: Install browser-ui-test + run: npm install browser-ui-test@"${BROWSER_UI_TEST_VERSION}" + - uses: actions/checkout@v4 + - name: Install Rust + run: bash ci/install-rust.sh ${{ matrix.rust }} ${{ matrix.target }} + - name: Build and run tests (+ GUI) + run: cargo test --locked --target ${{ matrix.target }} --test gui + # The success job is here to consolidate the total success/failure state of # all other jobs. This job is then included in the GitHub branch protection # rule which prevents merges unless all other jobs are passing. This makes