Skip to content

Commit 7d7b09a

Browse files
committed
Fix sub-workflow for operation-location-migration
1 parent de03392 commit 7d7b09a

6 files changed

Lines changed: 81 additions & 79 deletions

.github/workflows/ci.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,22 @@ jobs:
4343
echo "operation-location-migration-e2e=$(./tools/ci/bin/check-affected.sh lib operation-location-migration-e2e origin/master)" >> $GITHUB_OUTPUT
4444
cat $GITHUB_OUTPUT
4545
46-
start-operation-location-migration:
47-
needs: precheck
48-
if: ${{ needs.precheck.outputs.affected-operation-location-migration == 'true' || needs.precheck.outputs.affected-operation-location-migration-e2e == 'true' }}
49-
uses: ./.github/workflows/operation-location-migration.yml
50-
5146
typescript-resolver-files:
5247
needs: precheck
5348
if: ${{ needs.precheck.outputs.affected-typescript-resolver-files == 'true' }}
54-
uses: ./.github/workflows/typescript-resolver-files.yml
49+
uses: ./.github/workflows/projects/typescript-resolver-files.yml
5550

5651
typescript-resolver-files-e2e:
5752
needs: precheck
5853
if: ${{ needs.precheck.outputs.affected-typescript-resolver-files == 'true' || needs.precheck.outputs.affected-typescript-resolver-files-e2e == 'true' }}
59-
uses: ./.github/workflows/typescript-resolver-files-e2e.yml
54+
uses: ./.github/workflows/projects/typescript-resolver-files-e2e.yml
55+
56+
operation-location-migration:
57+
needs: precheck
58+
if: ${{ needs.precheck.outputs.affected-operation-location-migration == 'true' }}
59+
uses: ./.github/workflows/projects/operation-location-migration.yml
60+
61+
operation-location-migration-e2e:
62+
needs: precheck
63+
if: ${{ needs.precheck.outputs.affected-operation-location-migration == 'true' || needs.precheck.outputs.affected-operation-location-migration-e2e == 'true' }}
64+
uses: ./.github/workflows/projects/operation-location-migration-e2e.yml

.github/workflows/operation-location-migration.yml

Lines changed: 0 additions & 72 deletions
This file was deleted.
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
on:
2+
workflow_call:
3+
4+
env:
5+
node-version: '22.x'
6+
7+
jobs:
8+
operation-location-migration-e2e:
9+
strategy:
10+
matrix:
11+
os: [ubuntu-22.04, windows-latest]
12+
node-version: [18.x, 20.x, 22.x]
13+
runs-on: ${{ matrix.os }}
14+
defaults:
15+
run:
16+
shell: bash
17+
steps:
18+
- name: Check out repository
19+
uses: actions/checkout@v4
20+
with:
21+
fetch-depth: 0
22+
23+
- name: Set up Node.js ${{ matrix.node-version }}
24+
uses: actions/setup-node@v4
25+
with:
26+
node-version: ${{ matrix.node-version }}
27+
cache: yarn
28+
cache-dependency-path: '**/yarn.lock'
29+
30+
- name: Install deps
31+
run: yarn install --prefer-offline
32+
33+
- name: e2e
34+
run: yarn nx e2e operation-location-migration-e2e
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
on:
2+
workflow_call:
3+
4+
env:
5+
node-version: '22.x'
6+
7+
jobs:
8+
operation-location-migration:
9+
strategy:
10+
matrix:
11+
os: [ubuntu-22.04, windows-latest]
12+
node-version: [18.x, 20.x, 22.x]
13+
runs-on: ${{ matrix.os }}
14+
steps:
15+
- name: Check out repository
16+
uses: actions/checkout@v4
17+
18+
- name: Set up Node.js ${{ matrix.node-version }}
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: ${{ matrix.node-version }}
22+
cache: yarn
23+
cache-dependency-path: '**/yarn.lock'
24+
25+
- name: Install deps
26+
run: yarn install --prefer-offline
27+
28+
- name: Lint
29+
run: yarn nx lint operation-location-migration
30+
31+
- name: Test
32+
run: yarn nx test operation-location-migration
33+
34+
- name: Build
35+
run: yarn nx build operation-location-migration

.github/workflows/typescript-resolver-files-e2e.yml renamed to .github/workflows/projects/typescript-resolver-files-e2e.yml

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)