-
Notifications
You must be signed in to change notification settings - Fork 0
77 lines (76 loc) · 1.86 KB
/
lint-test-build.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
69
70
71
72
73
74
75
76
77
name: linting, testing, building
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
permissions:
contents: write
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
build-and-ui-testing:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 17.x ]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: install modules
run: npm ci
- name: build prod project
if: always()
run: npm run build:prod
- name: build storybook
if: always()
run: npm run storybook:build
- name: screen testing
if: always()
run: npm run test:ui:ci
- name: unit testing
if: always()
run: npm run test:unit
- name: Generate loki HTML report
if: always()
run: npm run test:ui:report
- name: move loki report
run: mv .loki reports/
if: always()
- name: Setup Pages
if: always()
uses: actions/configure-pages@v2
- name: Upload artifact
if: always()
uses: actions/upload-pages-artifact@v1
with:
path: 'reports'
- name: Deploy to GitHub Pages
id: deployment
if: always()
uses: actions/deploy-pages@v1
checks:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 17.x ]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: install modules
run: npm ci
- name: linting ts
if: always()
run: npm run lint:ts
- name: linting scss
run: npm run lint:scss
- name: unit testing
if: always()
run: npm run test:unit