@@ -18,32 +18,50 @@ jobs:
18
18
19
19
test :
20
20
runs-on : ubuntu-latest
21
- name : " test (node v ${{ matrix.node-version }})"
21
+ name : " test (Node.js ${{ matrix.node-version }}, ESLint ${{ matrix.eslint-version }}, Angular ESLint ${{ matrix.angular-eslint-version[0] }})"
22
22
strategy :
23
+ fail-fast : false # Run all jobs, even when previous fails.
23
24
matrix :
24
- node-version : [
25
- # Angular supported Node.js versions.
26
- # https://gist.github.com/LayZeeDK/c822cc812f75bb07b7c55d07ba2719b3
27
- 14.15.0,
28
- 16.10.0,
29
- # Run on Angular supported versions and latest Node.js version,
30
- # and assume that the intermediate versions are good.
31
- 18,
32
- ]
25
+ # Run on latest and Angular supported Node.js versions,
26
+ # and assume that the intermediate versions are good.
27
+ node-version :
28
+ # Angular supported Node.js versions.
29
+ # https://gist.github.com/LayZeeDK/c822cc812f75bb07b7c55d07ba2719b3
30
+ - 14.15.0
31
+ - 16.10.0
32
+ # Latest Node.js version.
33
+ - latest
34
+ eslint-version : [7, 8]
35
+ # Angular ESLint version, and corresponding Typescript ESLint version.
36
+ angular-eslint-version :
37
+ - [13, "5.27.1"]
38
+ - [14, "latest"]
33
39
steps :
34
40
- uses : actions/checkout@v3
35
41
- name : Setup Node.js ${{ matrix.node-version }}
36
42
uses : actions/setup-node@v3
37
43
with :
38
44
node-version : ${{ matrix.node-version }}
39
45
cache : " npm"
40
- - run : npm ci --no-fund
41
- - run : npm run test
46
+ - name : Install packages
47
+ run : npm ci --no-fund
48
+ - name : Install Angular ESLint ${{ matrix.angular-eslint-version[0] }}
49
+ run : |
50
+ npm install --save-dev \
51
+ @angular-eslint/template-parser@${{ matrix.angular-eslint-version[0] }} \
52
+ @angular-eslint/utils@${{ matrix.angular-eslint-version[0] }} \
53
+ @angular/compiler@${{ matrix.angular-eslint-version[0] }} \
54
+ @typescript-eslint/eslint-plugin@${{ matrix.angular-eslint-version[1] }} \
55
+ @typescript-eslint/parser@${{ matrix.angular-eslint-version[1] }}
56
+ - name : Install ESLint ${{ matrix.eslint-version }}
57
+ run : npm install --save-dev eslint@${{ matrix.eslint-version }}
58
+ - name : Run tests
59
+ run : npm run test
42
60
- name : Test Report
43
61
uses : dorny/test-reporter@v1
44
62
if : success() || failure() # Run this step even if previous step failed.
45
63
with :
46
- name : " test report (node v ${{ matrix.node-version }})"
64
+ name : " test report (Node.js ${{ matrix.node-version }}, ESLint ${{ matrix.eslint-version }}, Angular ESLint ${{ matrix.angular-eslint-version[0] }})"
47
65
path : coverage/junit.xml
48
66
reporter : jest-junit
49
67
0 commit comments