|
6 | 6 | runs-on: ubuntu-latest
|
7 | 7 | steps:
|
8 | 8 | - name: Checkout
|
9 |
| - uses: actions/checkout@v3 |
| 9 | + uses: actions/checkout@v4 |
10 | 10 | - name: Setup node
|
11 |
| - uses: actions/setup-node@v3 |
| 11 | + uses: actions/setup-node@v4 |
12 | 12 | with:
|
13 |
| - node-version: 18.x |
| 13 | + node-version: 22 |
14 | 14 | cache: 'npm'
|
15 | 15 | - run: yarn install
|
16 | 16 | - run: yarn prettier:lint
|
17 | 17 |
|
18 |
| - eslint: |
19 |
| - runs-on: ubuntu-latest |
20 |
| - steps: |
21 |
| - - name: Checkout |
22 |
| - uses: actions/checkout@v3 |
23 |
| - - name: Setup node |
24 |
| - uses: actions/setup-node@v3 |
25 |
| - with: |
26 |
| - node-version: 18.x |
27 |
| - cache: 'npm' |
28 |
| - - run: yarn install |
29 |
| - - run: yarn eslint:lint |
30 |
| - |
31 |
| - angular: |
32 |
| - runs-on: ubuntu-latest |
33 |
| - steps: |
34 |
| - - name: Checkout |
35 |
| - uses: actions/checkout@v3 |
36 |
| - - name: Setup node |
37 |
| - uses: actions/setup-node@v3 |
38 |
| - with: |
39 |
| - node-version: 18.x |
40 |
| - cache: 'npm' |
41 |
| - - run: yarn install |
42 |
| - - run: TEST_CONFIG=angular TEST_FILE=index.ts yarn eslint:printRules |
43 |
| - - run: TEST_CONFIG=angular TEST_FILE=index.spec.ts yarn eslint:printRules |
44 |
| - - run: TEST_CONFIG=angular TEST_FILE=index.model.spec.ts yarn eslint:printRules |
45 |
| - - run: TEST_CONFIG=angular TEST_FILE=index.model.ts yarn eslint:printRules |
46 |
| - - run: TEST_CONFIG=angular TEST_FILE=index.abstract.ts yarn eslint:printRules |
47 |
| - - run: TEST_CONFIG=angular TEST_FILE=index.html yarn eslint:printRules |
48 |
| - - run: | |
49 |
| - if [ "$(git status --porcelain)" != "" ]; then |
50 |
| - echo "Some rules have changed" |
51 |
| - exit 1 |
52 |
| - else |
53 |
| - echo "No changes detected in snapshots" |
54 |
| - fi |
55 |
| -
|
56 | 18 | react:
|
57 | 19 | runs-on: ubuntu-latest
|
58 | 20 | steps:
|
59 | 21 | - name: Checkout
|
60 |
| - uses: actions/checkout@v3 |
| 22 | + uses: actions/checkout@v4 |
61 | 23 | - name: Setup node
|
62 |
| - uses: actions/setup-node@v3 |
| 24 | + uses: actions/setup-node@v4 |
63 | 25 | with:
|
64 |
| - node-version: 18.x |
| 26 | + node-version: 22 |
65 | 27 | cache: 'npm'
|
66 | 28 | - run: yarn install
|
67 |
| - - run: TEST_CONFIG=react-ts TEST_FILE=index.ts yarn eslint:printRules |
68 |
| - - run: TEST_CONFIG=react-ts TEST_FILE=src/Mocks/Data/index.ts yarn eslint:printRules |
69 |
| - - run: TEST_CONFIG=react-ts TEST_FILE=index.spec.ts yarn eslint:printRules |
70 |
| - - run: TEST_CONFIG=react-ts TEST_FILE=src/Generated/index.ts yarn eslint:printRules |
| 29 | + - run: yarn eslint:printRules |
71 | 30 | - run: |
|
72 | 31 | if [ "$(git status --porcelain)" != "" ]; then
|
73 | 32 | echo "Some rules have changed"
|
|
0 commit comments