-
Notifications
You must be signed in to change notification settings - Fork 25
64 lines (54 loc) · 2.63 KB
/
Copy pathci.yml
File metadata and controls
64 lines (54 loc) · 2.63 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
name: CI
on:
pull_request:
branches:
- master
- master-next
env:
node-version: '22.x'
jobs:
precheck:
name: Check jobs to run
runs-on: ubuntu-24.04
outputs:
affected-typescript-resolver-files: ${{ steps.affected.outputs.typescript-resolver-files }}
affected-typescript-resolver-files-e2e: ${{ steps.affected.outputs.typescript-resolver-files-e2e }}
affected-operation-location-migration: ${{ steps.affected.outputs.operation-location-migration }}
affected-operation-location-migration-e2e: ${{ steps.affected.outputs.operation-location-migration-e2e }}
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.node-version }}
cache: yarn
cache-dependency-path: '**/yarn.lock'
- name: Install deps
run: yarn install --prefer-offline
- name: Check affected projects
id: affected
run: |
echo "typescript-resolver-files=$(./tools/ci/bin/check-affected.sh lib typescript-resolver-files origin/master)" >> $GITHUB_OUTPUT
echo "typescript-resolver-files-e2e=$(./tools/ci/bin/check-affected.sh lib typescript-resolver-files-e2e origin/master)" >> $GITHUB_OUTPUT
echo "operation-location-migration=$(./tools/ci/bin/check-affected.sh lib operation-location-migration origin/master)" >> $GITHUB_OUTPUT
echo "operation-location-migration-e2e=$(./tools/ci/bin/check-affected.sh lib operation-location-migration-e2e origin/master)" >> $GITHUB_OUTPUT
cat $GITHUB_OUTPUT
typescript-resolver-files:
needs: precheck
if: ${{ needs.precheck.outputs.affected-typescript-resolver-files == 'true' }}
uses: ./.github/workflows/projects/typescript-resolver-files.yml
typescript-resolver-files-e2e:
needs: precheck
if: ${{ needs.precheck.outputs.affected-typescript-resolver-files == 'true' || needs.precheck.outputs.affected-typescript-resolver-files-e2e == 'true' }}
uses: ./.github/workflows/projects/typescript-resolver-files-e2e.yml
operation-location-migration:
needs: precheck
if: ${{ needs.precheck.outputs.affected-operation-location-migration == 'true' }}
uses: ./.github/workflows/projects/operation-location-migration.yml
operation-location-migration-e2e:
needs: precheck
if: ${{ needs.precheck.outputs.affected-operation-location-migration == 'true' || needs.precheck.outputs.affected-operation-location-migration-e2e == 'true' }}
uses: ./.github/workflows/projects/operation-location-migration-e2e.yml