Skip to content

Test release

Test release #1441

Workflow file for this run

name: CI
on:
pull_request:
branches:
- master
- master-next
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
node-version: '24.x'
jobs:
install-deps:
strategy:
matrix:
os: [ubuntu-22.04, windows-latest]
runs-on: ${{ matrix.os }}
name: Install Dependencies
steps:
- name: Check out repository
uses: actions/checkout@v4
- 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 --frozen-lockfile
- name: Cache node_modules
uses: actions/cache@v4
id: cache-node-modules
with:
path: |
node_modules
packages/*/node_modules
tools/*/node_modules
key: node-modules-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
node-modules-${{ runner.os }}-
precheck:
name: Check jobs to run
runs-on: ubuntu-24.04
needs: install-deps
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 }}
- name: Restore node_modules cache
uses: actions/cache@v4
with:
path: |
node_modules
packages/*/node_modules
tools/*/node_modules
key: node-modules-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
node-modules-${{ runner.os }}-
- 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: [install-deps, precheck]
if: ${{ needs.precheck.outputs.affected-typescript-resolver-files == 'true' }}
uses: ./.github/workflows/typescript-resolver-files.yml
typescript-resolver-files-e2e:
needs: [install-deps, precheck]
if: ${{ needs.precheck.outputs.affected-typescript-resolver-files == 'true' || needs.precheck.outputs.affected-typescript-resolver-files-e2e == 'true' }}
uses: ./.github/workflows/typescript-resolver-files-e2e.yml
operation-location-migration:
needs: [install-deps, precheck]
if: ${{ needs.precheck.outputs.affected-operation-location-migration == 'true' }}
uses: ./.github/workflows/operation-location-migration.yml
operation-location-migration-e2e:
needs: [install-deps, precheck]
if: ${{ needs.precheck.outputs.affected-operation-location-migration == 'true' || needs.precheck.outputs.affected-operation-location-migration-e2e == 'true' }}
uses: ./.github/workflows/operation-location-migration-e2e.yml