-
-
Notifications
You must be signed in to change notification settings - Fork 25
75 lines (67 loc) · 2.07 KB
/
pull-request.yml
File metadata and controls
75 lines (67 loc) · 2.07 KB
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
name: Verify
on:
push:
branches: [master]
pull_request:
branches: [master]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: "Unit Tests"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
unit-tests:
- path: "./angular/app-i18n"
- path: "./angular/app-settings"
- path: "./angular/components/basic-components"
- path: "./angular/components/component-host"
- path: "./angular/components/component-providers"
- path: "./angular/components/component-queries"
- path: "./angular/components/dynamic-content"
- path: "./angular/components/lifecycle"
- path: "./angular/dependency-injection"
- path: "./angular/directives/app-attach-directive"
- path: "./angular/directives/app-upload-directive"
- path: "./angular/directives/attribute-directives"
- path: "./angular/directives/directive-example"
- path: "./angular/directives/structural-directives"
- path: "./angular/events"
- path: "./angular/ng-docker"
- path: "./angular/pipes/custom-pipes"
- path: "./angular/pipes/pure-impure"
- path: "./angular/pipes/standard-pipes"
- path: "./angular/plugins"
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 14
cache: 'npm'
cache-dependency-path: ${{ matrix.unit-tests.path }}/package-lock.json
- name: Test
run: |
cd ${{ matrix.unit-tests.path }}
npm i
npm run test:ci
env:
CI: true
verify:
if: ${{ always() }}
needs: [test]
name: Verify
runs-on: ubuntu-latest
steps:
- name: Verify Jobs
if: >-
${{
contains(needs.*.result, 'failure')
|| contains(needs.*.result, 'cancelled')
}}
run: exit 1