Skip to content

Commit 2bc620b

Browse files
Update test.yml
1 parent a0415af commit 2bc620b

File tree

1 file changed

+27
-24
lines changed

1 file changed

+27
-24
lines changed

.github/workflows/test.yml

+27-24
Original file line numberDiff line numberDiff line change
@@ -7,61 +7,64 @@ on:
77
branches: [master, develop]
88

99
jobs:
10-
install:
10+
lint:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
node-version: [16]
14+
node-version: ['lts/*']
1515
steps:
1616
- uses: actions/checkout@v2
17-
- name: Use Node.js ${{ matrix.node-version }}
17+
- name: Setup Node.js ${{ matrix.node-version }}
1818
uses: actions/setup-node@v2
1919
with:
2020
node-version: ${{ matrix.node-version }}
2121
cache: 'npm'
22-
- run: npm install
22+
- name: Install dependencies
23+
run: npm ci --ignore-scripts
24+
- name: Lint
25+
run: npm run lint
2326

24-
lint:
25-
needs: install
26-
runs-on: ubuntu-latest
27+
test-jest:
28+
runs-on: ${{ matrix.os }}
2729
strategy:
30+
fail-fast: false
2831
matrix:
29-
node-version: [16]
32+
node-version: ['lts/*']
33+
os: ['macos-latest', 'ubuntu-latest', 'windows-latest']
3034
steps:
3135
- uses: actions/checkout@v2
32-
- name: Use Node.js ${{ matrix.node-version }}
36+
- name: Setup Node.js ${{ matrix.node-version }}
3337
uses: actions/setup-node@v2
3438
with:
3539
node-version: ${{ matrix.node-version }}
3640
cache: 'npm'
37-
- name: Lint
38-
run: npm run lint
41+
- name: Install dependencies
42+
run: npm ci --ignore-scripts
43+
- name: Unit Tests
44+
run: npm run test:unit -- -ci
45+
- name: Integration Tests
46+
run: npm run test:integration -- -ci
3947

40-
test:
41-
needs: install
42-
runs-on: ${{ matrix.os }}
48+
test-playwright:
49+
runs-on: ubuntu-latest
4350
strategy:
4451
matrix:
45-
node-version: [16]
46-
os: ['macos-latest', 'ubuntu-latest', 'windows-latest']
52+
node-version: ['lts/*']
4753
steps:
4854
- uses: actions/checkout@v2
49-
- name: Use Node.js ${{ matrix.node-version }}
55+
- name: Setup Node.js ${{ matrix.node-version }}
5056
uses: actions/setup-node@v2
5157
with:
5258
node-version: ${{ matrix.node-version }}
5359
cache: 'npm'
54-
- name: Bootstrap
55-
run: npm run bootstrap
56-
- name: Unit Tests (Jest)
57-
run: npm run test:unit -- -ci --runInBand
58-
- name: Integration Tests (Jest)
59-
run: npm run test:integration -- -ci --runInBand
60+
- name: Install dependencies
61+
run: npm ci --ignore-scripts
6062
- name: Install Playwright
6163
run: npx playwright install --with-deps
6264
- name: E2E Tests (Playwright)
6365
run: npm run test:e2e
64-
- uses: actions/upload-artifact@v2
66+
- name: Store artifacts
67+
uses: actions/upload-artifact@v2
6568
if: failure()
6669
with:
6770
name: ${{ matrix.os }}-${{ matrix.node-version }}-artifacts

0 commit comments

Comments
 (0)