|
6 | 6 | - master |
7 | 7 | - master-next |
8 | 8 |
|
9 | | -concurrency: |
10 | | - group: ${{ github.workflow }}-${{ github.ref }} |
11 | | - cancel-in-progress: true |
12 | | - |
13 | 9 | env: |
14 | 10 | node-version: '22.x' |
15 | 11 |
|
@@ -44,62 +40,11 @@ jobs: |
44 | 40 | cat $GITHUB_OUTPUT |
45 | 41 |
|
46 | 42 | typescript-resolver-files: |
47 | | - strategy: |
48 | | - matrix: |
49 | | - os: [ubuntu-22.04, windows-latest] |
50 | | - node-version: [18.x, 20.x, 22.x] |
51 | | - runs-on: ${{ matrix.os }} |
52 | 43 | needs: precheck |
53 | 44 | if: ${{ needs.precheck.outputs.affected-typescript-resolver-files == 'true' }} |
54 | | - steps: |
55 | | - - name: Check out repository |
56 | | - uses: actions/checkout@v4 |
57 | | - |
58 | | - - name: Set up Node.js ${{ matrix.node-version }} |
59 | | - uses: actions/setup-node@v4 |
60 | | - with: |
61 | | - node-version: ${{ matrix.node-version }} |
62 | | - cache: yarn |
63 | | - cache-dependency-path: '**/yarn.lock' |
64 | | - |
65 | | - - name: Install deps |
66 | | - run: yarn install --prefer-offline |
67 | | - |
68 | | - - name: Lint |
69 | | - run: yarn nx lint typescript-resolver-files |
70 | | - |
71 | | - - name: Test |
72 | | - run: yarn nx test typescript-resolver-files |
73 | | - |
74 | | - - name: Build |
75 | | - run: yarn nx build typescript-resolver-files |
| 45 | + uses: ./.github/workflows/typescript-resolver-files.yml |
76 | 46 |
|
77 | 47 | typescript-resolver-files-e2e: |
78 | | - strategy: |
79 | | - matrix: |
80 | | - os: [ubuntu-22.04, windows-latest] |
81 | | - node-version: [18.x, 20.x, 22.x] |
82 | | - runs-on: ${{ matrix.os }} |
83 | | - defaults: |
84 | | - run: |
85 | | - shell: bash |
86 | 48 | needs: precheck |
87 | 49 | if: ${{ needs.precheck.outputs.affected-typescript-resolver-files == 'true' || needs.precheck.outputs.affected-typescript-resolver-files-e2e == 'true' }} |
88 | | - steps: |
89 | | - - name: Check out repository |
90 | | - uses: actions/checkout@v4 |
91 | | - with: |
92 | | - fetch-depth: 0 |
93 | | - |
94 | | - - name: Set up Node.js ${{ matrix.node-version }} |
95 | | - uses: actions/setup-node@v4 |
96 | | - with: |
97 | | - node-version: ${{ matrix.node-version }} |
98 | | - cache: yarn |
99 | | - cache-dependency-path: '**/yarn.lock' |
100 | | - |
101 | | - - name: Install deps |
102 | | - run: yarn install --prefer-offline |
103 | | - |
104 | | - - name: e2e |
105 | | - run: yarn nx e2e typescript-resolver-files-e2e |
| 50 | + uses: ./.github/workflows/typescript-resolver-files-e2e.yml |
0 commit comments