Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 41 additions & 3 deletions .github/actions/yarn-playwright-install/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,47 @@ runs:
${{ github.workspace }}/node_modules/playwright
key: ${{ runner.os }}-playwright-${{ env.PLAYWRIGHT_VERSION }}

# In default mode: run if playwright-cache missed
# In skip mode: run if playwright-cache-check missed (but cache restore step was also skipped)
- name: Determine if playwright install will run
id: should-install
shell: bash
run: |
if [[ "${{ inputs.skip-install-if-cache-hit }}" == "true" ]]; then
cache_hit="${{ steps.playwright-cache-check.outputs.cache-hit }}"
else
cache_hit="${{ steps.playwright-cache.outputs.cache-hit }}"
fi
if [[ "$cache_hit" == "true" ]]; then
echo "value=false" >> "$GITHUB_OUTPUT"
else
echo "value=true" >> "$GITHUB_OUTPUT"
fi

# When the caller uses yarn-install with skip-install-if-cache-hit, node_modules is never
# materialized on disk if all yarn caches hit (pure lookup). `yarn playwright install` needs
# node_modules to resolve the playwright bin, so restore it here (and fall back to a full
# install if that cache also missed) before running the install step.
- name: Restore node_modules for playwright install
if: ${{ steps.should-install.outputs.value == 'true' }}
id: nm-restore
uses: actions/cache/restore@v4
with:
path: |
**/node_modules/
!**/.next/node_modules/
key: ${{ runner.os }}-yarn-nm-cache-${{ hashFiles('yarn.lock', '.yarnrc.yml') }}

- name: Yarn install (fallback when node_modules cache also missed)
if: ${{ steps.should-install.outputs.value == 'true' && steps.nm-restore.outputs.cache-hit != 'true' }}
shell: bash
run: yarn install --inline-builds
env:
YARN_ENABLE_IMMUTABLE_INSTALLS: "false"
YARN_ENABLE_GLOBAL_CACHE: "false"
YARN_INSTALL_STATE_PATH: .yarn/ci-cache/install-state.gz
YARN_NM_MODE: "hardlinks-local"
HUSKY: "0"

- name: Yarn playwright install
if: ${{ (inputs.skip-install-if-cache-hit != 'true' && steps.playwright-cache.outputs.cache-hit != 'true') || (inputs.skip-install-if-cache-hit == 'true' && steps.playwright-cache-check.outputs.cache-hit != 'true') }}
if: ${{ steps.should-install.outputs.value == 'true' }}
shell: bash
run: yarn playwright install --with-deps
46 changes: 0 additions & 46 deletions .github/workflows/cleanup-report.yml

This file was deleted.

73 changes: 0 additions & 73 deletions .github/workflows/cleanup.yml

This file was deleted.

8 changes: 2 additions & 6 deletions .github/workflows/e2e-app-store.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ env:
NODE_OPTIONS: --max-old-space-size=4096
ALLOWED_HOSTNAMES: ${{ vars.CI_ALLOWED_HOSTNAMES }}
CALENDSO_ENCRYPTION_KEY: ${{ secrets.CI_CALENDSO_ENCRYPTION_KEY }}
CURRENTS_RECORD_KEY: ${{ secrets.CURRENTS_RECORD_KEY }}
CURRENTS_PROJECT_ID: ${{ vars.CURRENTS_PROJECT_ID }}
DAILY_API_KEY: ${{ secrets.CI_DAILY_API_KEY }}
DATABASE_URL: ${{ secrets.CI_DATABASE_URL }}
DATABASE_DIRECT_URL: ${{ secrets.CI_DATABASE_URL }}
Expand Down Expand Up @@ -98,9 +100,3 @@ jobs:
- uses: ./.github/actions/cache-build
- name: Run Tests
run: yarn e2e:app-store --workers=4
- name: Upload Test Results
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
name: blob-report-app-store
path: blob-report
2 changes: 2 additions & 0 deletions .github/workflows/e2e-atoms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ permissions:

env:
NODE_OPTIONS: --max-old-space-size=8096
CURRENTS_RECORD_KEY: ${{ secrets.CURRENTS_RECORD_KEY }}
CURRENTS_PROJECT_ID: ${{ vars.CURRENTS_PROJECT_ID }}
ATOMS_E2E_OAUTH_CLIENT_ID: ${{ secrets.ATOMS_E2E_OAUTH_CLIENT_ID }}
ATOMS_E2E_OAUTH_CLIENT_SECRET: ${{ secrets.ATOMS_E2E_OAUTH_CLIENT_SECRET }}
ATOMS_E2E_API_URL: ${{ secrets.ATOMS_E2E_API_URL }}
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/e2e-embed-react.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ env:
NODE_OPTIONS: --max-old-space-size=4096
ALLOWED_HOSTNAMES: ${{ vars.CI_ALLOWED_HOSTNAMES }}
CALENDSO_ENCRYPTION_KEY: ${{ secrets.CI_CALENDSO_ENCRYPTION_KEY }}
CURRENTS_RECORD_KEY: ${{ secrets.CURRENTS_RECORD_KEY }}
CURRENTS_PROJECT_ID: ${{ vars.CURRENTS_PROJECT_ID }}
DAILY_API_KEY: ${{ secrets.CI_DAILY_API_KEY }}
DATABASE_URL: ${{ secrets.CI_DATABASE_URL }}
DATABASE_DIRECT_URL: ${{ secrets.CI_DATABASE_URL }}
Expand Down Expand Up @@ -85,9 +87,3 @@ jobs:
run: |
yarn e2e:embed-react --workers=4
yarn workspace @calcom/embed-react packaged:tests
- name: Upload Test Results
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
name: blob-report-embed-react
path: blob-report
8 changes: 2 additions & 6 deletions .github/workflows/e2e-embed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ env:
NODE_OPTIONS: --max-old-space-size=4096
ALLOWED_HOSTNAMES: ${{ vars.CI_ALLOWED_HOSTNAMES }}
CALENDSO_ENCRYPTION_KEY: ${{ secrets.CI_CALENDSO_ENCRYPTION_KEY }}
CURRENTS_RECORD_KEY: ${{ secrets.CURRENTS_RECORD_KEY }}
CURRENTS_PROJECT_ID: ${{ vars.CURRENTS_PROJECT_ID }}
DAILY_API_KEY: ${{ secrets.CI_DAILY_API_KEY }}
DATABASE_URL: ${{ secrets.CI_DATABASE_URL }}
DATABASE_DIRECT_URL: ${{ secrets.CI_DATABASE_URL }}
Expand Down Expand Up @@ -91,9 +93,3 @@ jobs:
- uses: ./.github/actions/cache-build
- name: Run Tests
run: yarn e2e:embed --workers=4
- name: Upload Test Results
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
name: blob-report-embed-core
path: blob-report
Loading
Loading