Skip to content

Commit a98ed8f

Browse files
committed
Update Github CI
1 parent 27c6592 commit a98ed8f

File tree

2 files changed

+18
-27
lines changed

2 files changed

+18
-27
lines changed

.github/workflows/lint.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,25 @@ name: Lint
22

33
on:
44
push:
5-
branches:
6-
- master
7-
- develop
5+
branches: [master, develop]
86
pull_request:
9-
branches:
10-
- master
11-
- develop
7+
branches: [master, develop]
128

139
jobs:
14-
build:
10+
lint:
1511
runs-on: ubuntu-latest
1612
strategy:
1713
fail-fast: false
1814
matrix:
19-
node-version: [12.x, 14.x]
15+
node-version: [14.x, 16.x]
2016

2117
steps:
2218
- uses: actions/checkout@v2
2319
- name: Use Node.js ${{ matrix.node-version }}
24-
uses: actions/setup-node@v1
20+
uses: actions/setup-node@v2
2521
with:
2622
node-version: ${{ matrix.node-version }}
27-
- name: Install
23+
- name: Install dependencies
2824
run: npm i --ignore-scripts
2925
- name: Lint
3026
run: npm run lint

.github/workflows/test.yml

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,41 +2,36 @@ name: Build & Test
22

33
on:
44
push:
5-
branches:
6-
- master
7-
- develop
5+
branches: [master, develop]
86
pull_request:
9-
branches:
10-
- master
11-
- develop
7+
branches: [master, develop]
128

139
jobs:
14-
build:
10+
test:
11+
timeout-minutes: 60
1512
runs-on: ${{ matrix.os }}
1613
strategy:
1714
fail-fast: false
1815
matrix:
19-
node-version: [12.x, 14.x]
16+
node-version: [14.x, 16.x]
2017
os: ['macos-latest', 'ubuntu-latest', 'windows-latest']
21-
2218
steps:
2319
- uses: actions/checkout@v2
2420
- name: Use Node.js ${{ matrix.node-version }}
25-
uses: actions/setup-node@v1
21+
uses: actions/setup-node@v2
2622
with:
2723
node-version: ${{ matrix.node-version }}
28-
- name: bootstrap
24+
- name: Bootstrap
2925
run: npm run bootstrap
30-
- name: unit tests
26+
- name: Unit Tests (Jest)
3127
run: npm run test:unit -- -ci --runInBand
32-
- name: integration tests
28+
- name: Integration Tests (Jest)
3329
run: npm run test:integration -- -ci --runInBand
34-
- uses: microsoft/playwright-github-action@v1
35-
- name: e2e tests
36-
run: npm run test:e2e -- --ci --runInBand
30+
- name: E2E Tests (Playwright)
31+
run: npm run test:e2e
3732
- name: Upload artifacts (diff output)
3833
uses: actions/upload-artifact@v2
3934
if: failure()
4035
with:
4136
name: ${{ matrix.os }}-${{ matrix.node-version }}-diff-output
42-
path: ${{ github.workspace }}/test/**/__diff_output__/*
37+
path: _playwright-results

0 commit comments

Comments
 (0)