Skip to content

Commit 18dd14b

Browse files
committed
Change to a matrix
1 parent 9c5bb15 commit 18dd14b

1 file changed

Lines changed: 7 additions & 26 deletions

File tree

.github/workflows/test-system.yml

Lines changed: 7 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,13 @@ env:
2222
FERRUM_PROCESS_TIMEOUT: 30
2323

2424
jobs:
25-
system_chrome:
26-
name: System (Chrome)
25+
system:
26+
name: System (${{ matrix.browser }})
2727
runs-on: ubuntu-latest
28+
strategy:
29+
fail-fast: false
30+
matrix:
31+
browser: [chrome, firefox]
2832
steps:
2933
- uses: actions/checkout@v6
3034
- uses: ruby/setup-ruby@v1
@@ -44,27 +48,4 @@ jobs:
4448
cd demo && npm ci
4549
- name: Test
4650
run: |
47-
USE_BROWSER=chrome bundle exec rake test:system
48-
system_firefox:
49-
name: System (Firefox)
50-
runs-on: ubuntu-latest
51-
steps:
52-
- uses: actions/checkout@v6
53-
- uses: ruby/setup-ruby@v1
54-
with:
55-
ruby-version: "3.2"
56-
bundler-cache: true
57-
- uses: actions/setup-node@v5
58-
with:
59-
node-version: 20
60-
cache: "npm"
61-
cache-dependency-path: |
62-
package-lock.json
63-
demo/package-lock.json
64-
- name: Build
65-
run: |
66-
npm ci
67-
cd demo && npm ci
68-
- name: Test
69-
run: |
70-
USE_BROWSER=firefox bundle exec rake test:system
51+
USE_BROWSER=${{ matrix.browser }} bundle exec rake test:system

0 commit comments

Comments
 (0)