This repository has been archived by the owner on Jun 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 58
68 lines (66 loc) · 1.58 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Build and Test
on:
push:
branches-ignore:
- release
jobs:
unit_tests:
name: Unit Tests
runs-on: ubuntu-latest
env:
CI: 'true'
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16.15'
- name: Install build dependencies
run: npm run install:extension
- name: Run unit tests
run: npm run test:unit
end_to_end_tests:
name: End to End Tests
runs-on: ubuntu-latest
env:
CI: 'true'
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16.15'
- name: Install test dependencies
env:
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: 'true'
run: npm run postinstall
- name: Build
run: npm run build
- name: Run headful puppeteer tests
uses: mujo-code/[email protected]
with:
args: npm run test:github
- name: Upload screenshots
if: ${{ always() }}
uses: actions/upload-artifact@v3
with:
name: screenshot
path: ./packages/test-project/screenshots/*.png
retention-days: 5
build:
name: Zip and Upload Build
runs-on: ubuntu-latest
env:
CI: 'true'
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16.15'
- name: Install build dependencies
run: npm run install:extension
- name: Build
run: npm run build
- name: Upload build artifact
uses: actions/upload-artifact@v3
with:
name: build
path: ./dist/*