-
Notifications
You must be signed in to change notification settings - Fork 572
45 lines (43 loc) · 1.08 KB
/
ci.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
name: Build and test
on:
pull_request:
branches:
- master
- development
push:
branches:
- master
- development
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: npm
node-version: 16
- uses: actions/cache@v3
with:
path: |
.angular/cache
key: angular-build-cache-${{ hashFiles('**/package-lock.json') }}
- run: npm ci
- run: npm run lint
- run: npm run build:lib
- run: npm run build:schematics
- run: npm run test:ci && exit 0
- run: npm run test:schematics
- run: npm run e2e:ci
- name: Archive e2e screenshots
if: failure()
uses: actions/upload-artifact@v3
with:
name: visual-testing-diff
path: cypress/e2e/__image_snapshots__
- name: Archive e2e video
if: failure()
uses: actions/upload-artifact@v3
with:
name: visual-testing-videos
path: dist/cypress/videos