Skip to content

Commit dce5d4e

Browse files
committed
running on node version 18, 20, 22 and browsers
1 parent 0334587 commit dce5d4e

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/build.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,41 @@
1+
name: Test on Multiple OS and Browsers
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
browser-tests:
13+
runs-on: ${{ matrix.os }}
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
os: [ubuntu-latest, macos-latest, windows-latest]
18+
node-version: [18, 20, 22]
19+
attempt: [1, 2, 3, 4, 5, 6, 7, 8, 9]
20+
browser: [chrome-latest, firefox-latest, safari-latest]
21+
22+
steps:
23+
- name: Checkout code
24+
uses: actions/checkout@v3
25+
26+
- name: Set up Node.js ${{ matrix.node-version }}
27+
uses: actions/setup-node@v3
28+
with:
29+
node-version: ${{ matrix.node-version }}
30+
31+
- name: Install dependencies
32+
run: npm install --force
33+
34+
- name: Run browser-based tests
35+
run: |
36+
echo "Run attempt: ${{ matrix.attempt }}"
37+
echo "Browser: ${{ matrix.browser }}"
38+
npm run test -- --browser=${{ matrix.browser }}
139
name: Test on Multiple OS
240

341
on:

0 commit comments

Comments
 (0)