Scheduling infrastructure for absolutely everyone.
GH actions improvements
zomarsfb1828c8f9be
diff --git a/.github/actions/cache-build/action.yml b/.github/actions/cache-build/action.ymlindex 26060a85c38..7d6605058d6 100644--- a/.github/actions/cache-build/action.yml+++ b/.github/actions/cache-build/action.yml@@ -13,14 +13,16 @@ runs:env:cache-name: prod-buildkey-1: ${{ inputs.node_version }}-${{ hashFiles('yarn.lock') }}- key-2: ${{ hashFiles('**/**.[jt]s', '**/**.[jt]sx', '!**/node_modules') }}+ key-2: ${{ hashFiles('apps/**/**.[jt]s', 'apps/**/**.[jt]sx', 'packages/**/**.[jt]s', 'packages/**/**.[jt]sx', '!**/node_modules') }}key-3: ${{ github.event.pull_request.number || github.ref }}+ # Ensures production-build.yml will always be fresh+ key-4: ${{ github.sha }}with:path: |${{ github.workspace }}/apps/web/.next**/.turbo/****/dist/**- key: ${{ runner.os }}-${{ env.cache-name }}-${{ env.key-1 }}-${{ env.key-2 }}-${{ env.key-3 }}+ key: ${{ runner.os }}-${{ env.cache-name }}-${{ env.key-1 }}-${{ env.key-2 }}-${{ env.key-3 }}-${{ env.key-4 }}- run: yarn buildif: steps.cache-build.outputs.cache-hit != 'true'shell: bashdiff --git a/.github/actions/yarn-install/action.yml b/.github/actions/yarn-install/action.ymlindex 4dbb7c5f8c4..d6ae98b4bd3 100644--- a/.github/actions/yarn-install/action.yml+++ b/.github/actions/yarn-install/action.yml@@ -12,17 +12,6 @@ runs:with:node-version: ${{ inputs.node_version }}cache: "yarn"- - name: node_modules cache- id: node-modules-cache- uses: actions/cache@v3- env:- cache-name: node-modules-yarn- cache-key: ${{ inputs.node_version }}-${{ hashFiles('yarn.lock', 'packages/prisma/schema.prisma') }}- with:- path: |- **/node_modules/**- packages/prisma/zod- key: ${{ runner.os }}-${{ env.cache-name }}-${{ env.cache-key }}- name: Yarn installshell: bashrun: |diff --git a/.github/workflows/e2e-app-store.yml b/.github/workflows/e2e-app-store.ymlindex e3d883bb9e9..c1d32aaa7bd 100644--- a/.github/workflows/e2e-app-store.yml+++ b/.github/workflows/e2e-app-store.yml@@ -22,8 +22,8 @@ jobs:- run: echo 'NODE_OPTIONS="--max_old_space_size=4096"' >> $GITHUB_ENV- uses: ./.github/actions/yarn-install- uses: ./.github/actions/yarn-playwright-install- - uses: ./.github/actions/cache-db- uses: ./.github/actions/env-read-file+ - uses: ./.github/actions/cache-db- uses: ./.github/actions/cache-build- name: Run Testsrun: yarn test-e2e:app-storediff --git a/.github/workflows/e2e-embed.yml b/.github/workflows/e2e-embed.ymlindex db1f6707aa9..bb24e4c1009 100644--- a/.github/workflows/e2e-embed.yml+++ b/.github/workflows/e2e-embed.yml@@ -21,8 +21,8 @@ jobs:- run: echo 'NODE_OPTIONS="--max_old_space_size=4096"' >> $GITHUB_ENV- uses: ./.github/actions/yarn-install- uses: ./.github/actions/yarn-playwright-install- - uses: ./.github/actions/cache-db- uses: ./.github/actions/env-read-file+ - uses: ./.github/actions/cache-db- uses: ./.github/actions/cache-build- name: Run Testsrun: yarn turbo run embed-tests-update-snapshots:ci --scope=@calcom/embed-react --concurrency=1diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.ymlindex c77054f275a..95e82b24c2b 100644--- a/.github/workflows/e2e.yml+++ b/.github/workflows/e2e.yml@@ -20,8 +20,8 @@ jobs:- run: echo 'NODE_OPTIONS="--max_old_space_size=4096"' >> $GITHUB_ENV- uses: ./.github/actions/yarn-install- uses: ./.github/actions/yarn-playwright-install- - uses: ./.github/actions/cache-db- uses: ./.github/actions/env-read-file+ - uses: ./.github/actions/cache-db- uses: ./.github/actions/cache-build- name: Run Testsrun: yarn test-e2ediff --git a/.github/workflows/pr.yml b/.github/workflows/pr.ymlindex e306a557eb5..c7c3159bf44 100644--- a/.github/workflows/pr.yml+++ b/.github/workflows/pr.yml@@ -37,32 +37,24 @@ jobs:uses: ./.github/workflows/env-create-file.ymlsecrets: inherit- setup:- name: Yarn install & cache- uses: ./.github/workflows/yarn-install.yml- secrets: inherit-type-check:name: Type check- needs: setupuses: ./.github/workflows/check-types.ymlsecrets: inherittest:name: Unit tests- needs: setupuses: ./.github/workflows/test.ymlsecrets: inheritlint:name: Linters- needs: setupuses: ./.github/workflows/lint.ymlsecrets: inheritbuild:name: Production build- needs: [setup, env]+ needs: envuses: ./.github/workflows/production-build.ymlsecrets: inherit