Skip to content

Commit 6c48bd6

Browse files
Run GUI tests as a separate testsuite
1 parent 2a13ca2 commit 6c48bd6

File tree

1 file changed

+16
-11
lines changed

1 file changed

+16
-11
lines changed

.github/workflows/main.yml

+16-11
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,6 @@ jobs:
5050
- uses: actions/checkout@v4
5151
- name: Install Rust
5252
run: bash ci/install-rust.sh ${{ matrix.rust }} ${{ matrix.target }}
53-
- name: Install npm
54-
if: matrix.os != 'windows-latest'
55-
uses: actions/setup-node@v3
56-
with:
57-
node-version: 20
58-
- name: Install browser-ui-test
59-
if: matrix.os != 'windows-latest'
60-
run: npm install browser-ui-test@"${BROWSER_UI_TEST_VERSION}"
61-
- name: Build and run tests (+ GUI)
62-
if: matrix.os != 'windows-latest'
63-
run: cargo test --locked --target ${{ matrix.target }} --test gui
6453
- name: Build and run tests
6554
run: cargo test --locked --target ${{ matrix.target }}
6655
- name: Test no default
@@ -84,6 +73,22 @@ jobs:
8473
run: rustup update stable && rustup default stable && rustup component add rustfmt
8574
- run: cargo fmt --check
8675

76+
gui:
77+
name: GUI tests
78+
runs-on: ubuntu-latest
79+
steps:
80+
- name: Install npm
81+
uses: actions/setup-node@v3
82+
with:
83+
node-version: 20
84+
- name: Install browser-ui-test
85+
run: npm install browser-ui-test@"${BROWSER_UI_TEST_VERSION}"
86+
- uses: actions/checkout@v4
87+
- name: Install Rust
88+
run: bash ci/install-rust.sh ${{ matrix.rust }} ${{ matrix.target }}
89+
- name: Build and run tests (+ GUI)
90+
run: cargo test --locked --target ${{ matrix.target }} --test gui
91+
8792
# The success job is here to consolidate the total success/failure state of
8893
# all other jobs. This job is then included in the GitHub branch protection
8994
# rule which prevents merges unless all other jobs are passing. This makes

0 commit comments

Comments
 (0)