Scheduling infrastructure for absolutely everyone.
refactor: detach yarn prisma generate from yarn-install action (#26382)
Keith Williamsaf110633c1fc
diff --git a/.github/actions/yarn-install/action.yml b/.github/actions/yarn-install/action.ymlindex a930ce326d3..e30334a1c94 100644--- a/.github/actions/yarn-install/action.yml+++ b/.github/actions/yarn-install/action.yml@@ -112,9 +112,7 @@ runs:- name: Install dependenciesif: ${{ inputs.skip-install-if-cache-hit != 'true' || steps.all-caches-check.outputs.all-hit != 'true' }}shell: bash- run: |- yarn install --inline-builds- yarn prisma generate+ run: yarn install --inline-buildsenv:# CI optimizations. Overrides yarnrc.yml options (or their defaults) in the CI action.YARN_ENABLE_IMMUTABLE_INSTALLS: "false" # So it doesn't try to remove our private submodule depsdiff --git a/.github/workflows/api-v2-unit-tests.yml b/.github/workflows/api-v2-unit-tests.ymlindex 20d599ccd83..5c6fd7b69c4 100644--- a/.github/workflows/api-v2-unit-tests.yml+++ b/.github/workflows/api-v2-unit-tests.yml@@ -14,6 +14,7 @@ jobs:- uses: actions/checkout@v4- uses: ./.github/actions/dangerous-git-checkout- uses: ./.github/actions/yarn-install+ - run: yarn prisma generate- name: Run API v2 unit testsworking-directory: apps/api/v2run: |diff --git a/.github/workflows/check-api-v2-breaking-changes.yml b/.github/workflows/check-api-v2-breaking-changes.ymlindex cc124fc538c..b41d3b719b7 100644--- a/.github/workflows/check-api-v2-breaking-changes.yml+++ b/.github/workflows/check-api-v2-breaking-changes.yml@@ -39,7 +39,9 @@ jobs:- name: Generate Swaggerworking-directory: apps/api/v2- run: yarn generate-swagger+ run: |+ yarn prisma generate+ yarn generate-swagger- name: Check API v2 breaking changesrun: |diff --git a/.github/workflows/e2e-app-store.yml b/.github/workflows/e2e-app-store.ymlindex 8a4ca30454f..e3e1774c805 100644--- a/.github/workflows/e2e-app-store.yml+++ b/.github/workflows/e2e-app-store.yml@@ -84,6 +84,7 @@ jobs:- uses: ./.github/actions/dangerous-git-checkout- uses: ./.github/actions/yarn-install- uses: ./.github/actions/yarn-playwright-install+ - run: yarn prisma generate- uses: ./.github/actions/cache-dbenv:DATABASE_URL: ${{ secrets.CI_DATABASE_URL }}diff --git a/.github/workflows/e2e-embed-react.yml b/.github/workflows/e2e-embed-react.ymlindex 80112c3e4b4..a58cac84840 100644--- a/.github/workflows/e2e-embed-react.yml+++ b/.github/workflows/e2e-embed-react.yml@@ -76,6 +76,7 @@ jobs:- uses: ./.github/actions/dangerous-git-checkout- uses: ./.github/actions/yarn-install- uses: ./.github/actions/yarn-playwright-install+ - run: yarn prisma generate- uses: ./.github/actions/cache-db- uses: ./.github/actions/cache-build- name: Run Testsdiff --git a/.github/workflows/e2e-embed.yml b/.github/workflows/e2e-embed.ymlindex 614b098d935..c3b9b5e3c64 100644--- a/.github/workflows/e2e-embed.yml+++ b/.github/workflows/e2e-embed.yml@@ -84,6 +84,7 @@ jobs:- uses: ./.github/actions/dangerous-git-checkout- uses: ./.github/actions/yarn-install- uses: ./.github/actions/yarn-playwright-install+ - run: yarn prisma generate- uses: ./.github/actions/cache-db- uses: ./.github/actions/cache-build- name: Run Testsdiff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.ymlindex a5132a89d11..54a20cb066c 100644--- a/.github/workflows/e2e.yml+++ b/.github/workflows/e2e.yml@@ -85,6 +85,7 @@ jobs:- uses: ./.github/actions/dangerous-git-checkout- uses: ./.github/actions/yarn-install- uses: ./.github/actions/yarn-playwright-install+ - run: yarn prisma generate- uses: ./.github/actions/cache-db- uses: ./.github/actions/cache-build- name: Run Testsdiff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.ymlindex c9c6563e88d..83605ea5ccb 100644--- a/.github/workflows/integration-tests.yml+++ b/.github/workflows/integration-tests.yml@@ -81,6 +81,7 @@ jobs:- uses: actions/checkout@v4- uses: ./.github/actions/dangerous-git-checkout- uses: ./.github/actions/yarn-install+ - run: yarn prisma generate- uses: ./.github/actions/cache-db- name: Run Testsrun: VITEST_MODE=integration yarn testdiff --git a/.github/workflows/setup-db.yml b/.github/workflows/setup-db.ymlindex a4618d1fb92..f0634a0c685 100644--- a/.github/workflows/setup-db.yml+++ b/.github/workflows/setup-db.yml@@ -50,5 +50,7 @@ jobs:- uses: ./.github/actions/dangerous-git-checkout- uses: ./.github/actions/yarn-installif: inputs.DB_CACHE_HIT != 'true'+ - run: yarn prisma generate+ if: inputs.DB_CACHE_HIT != 'true'- uses: ./.github/actions/cache-dbif: inputs.DB_CACHE_HIT != 'true'diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.ymlindex 34fd4c1d086..a922ec9698a 100644--- a/.github/workflows/unit-tests.yml+++ b/.github/workflows/unit-tests.yml@@ -14,6 +14,7 @@ jobs:- uses: actions/checkout@v4- uses: ./.github/actions/dangerous-git-checkout- uses: ./.github/actions/yarn-install+ - run: yarn prisma generate- run: yarn test -- --no-isolate# We could add different timezones here that we need to run our tests in- run: TZ=America/Los_Angeles VITEST_MODE=timezone yarn test -- --no-isolate