Scheduling infrastructure for absolutely everyone.
chore: Moved e2e suite to run on pushes to main (#12819)
Keith Williams09f804413b74
diff --git a/.github/workflows/e2e-app-store.yml b/.github/workflows/e2e-app-store.ymlindex 90d725d96d3..471b0357e3c 100644--- a/.github/workflows/e2e-app-store.yml+++ b/.github/workflows/e2e-app-store.yml@@ -1,4 +1,4 @@-name: E2E App-Store Apps+name: E2E App-Store Apps Testson:workflow_call:diff --git a/.github/workflows/e2e-embed-react.yml b/.github/workflows/e2e-embed-react.ymlindex 5b356246c77..040dec0265a 100644--- a/.github/workflows/e2e-embed-react.yml+++ b/.github/workflows/e2e-embed-react.yml@@ -1,4 +1,4 @@-name: E2E Embed React tests and booking flow(for non-embed as well)+name: E2E Embed React tests and booking flow (for non-embed as well)on:workflow_call:diff --git a/.github/workflows/e2e-embed.yml b/.github/workflows/e2e-embed.ymlindex bed58018130..12be6a85000 100644--- a/.github/workflows/e2e-embed.yml+++ b/.github/workflows/e2e-embed.yml@@ -1,4 +1,4 @@-name: E2E Embed Core tests and booking flow(for non-embed as well)+name: E2E Embed Core tests and booking flow (for non-embed as well)on:workflow_call:diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.ymlindex aaa218103bc..8570d957861 100644--- a/.github/workflows/e2e.yml+++ b/.github/workflows/e2e.yml@@ -1,4 +1,4 @@-name: E2E test+name: E2E testson:workflow_call:diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.ymlindex c792d008bf1..5395b1bd847 100644--- a/.github/workflows/pr.yml+++ b/.github/workflows/pr.yml@@ -15,35 +15,6 @@ concurrency:cancel-in-progress: truejobs:- changes:- name: Detect changes- runs-on: buildjet-4vcpu-ubuntu-2204- permissions:- pull-requests: read- outputs:- app-store: ${{ steps.filter.outputs.app-store }}- embed: ${{ steps.filter.outputs.embed }}- embed-react: ${{ steps.filter.outputs.embed-react }}- steps:- - uses: actions/checkout@v3- - uses: ./.github/actions/dangerous-git-checkout- - uses: dorny/paths-filter@v2- id: filter- with:- filters: |- app-store:- - 'apps/web/**'- - 'packages/app-store/**'- - 'playwright.config.ts'- embed:- - 'apps/web/**'- - 'packages/embeds/**'- - 'playwright.config.ts'- embed-react:- - 'apps/web/**'- - 'packages/embeds/**'- - 'playwright.config.ts'-type-check:name: Type checkuses: ./.github/workflows/check-types.yml@@ -51,7 +22,7 @@ jobs:test:name: Unit tests- uses: ./.github/workflows/test.yml+ uses: ./.github/workflows/unit-tests.ymlsecrets: inheritlint:@@ -64,42 +35,13 @@ jobs:uses: ./.github/workflows/production-build.ymlsecrets: inherit- build-without-database:- name: Production build (without database)- uses: ./.github/workflows/production-build-without-database.yml- secrets: inherit-- e2e:- name: E2E tests- needs: [changes, lint, build]- uses: ./.github/workflows/e2e.yml- secrets: inherit-- e2e-app-store:- name: E2E App Store tests- needs: [changes, lint, build]- uses: ./.github/workflows/e2e-app-store.yml- secrets: inherit-- e2e-embed:- name: E2E embeds tests- needs: [changes, lint, build]- uses: ./.github/workflows/e2e-embed.yml- secrets: inherit-- e2e-embed-react:- name: E2E React embeds tests- needs: [changes, lint, build]- uses: ./.github/workflows/e2e-embed-react.yml- secrets: inherit-analyze:needs: builduses: ./.github/workflows/nextjs-bundle-analysis.ymlsecrets: inheritrequired:- needs: [lint, type-check, test, build, e2e, e2e-embed, e2e-embed-react, e2e-app-store]+ needs: [lint, type-check, test, build]if: always()runs-on: buildjet-4vcpu-ubuntu-2204steps:diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.ymlnew file mode 100644index 00000000000..90bfbfe383c--- /dev/null+++ b/.github/workflows/pre-release.yml@@ -0,0 +1,85 @@+name: Pre-release checks++on:+ workflow_dispatch:+ push:+ branches:+ - main++jobs:+ changes:+ name: Detect changes+ runs-on: buildjet-4vcpu-ubuntu-2204+ permissions:+ pull-requests: read+ outputs:+ app-store: ${{ steps.filter.outputs.app-store }}+ embed: ${{ steps.filter.outputs.embed }}+ embed-react: ${{ steps.filter.outputs.embed-react }}+ steps:+ - uses: actions/checkout@v3+ - uses: ./.github/actions/dangerous-git-checkout+ - uses: dorny/paths-filter@v2+ id: filter+ with:+ filters: |+ app-store:+ - 'apps/web/**'+ - 'packages/app-store/**'+ - 'playwright.config.ts'+ embed:+ - 'apps/web/**'+ - 'packages/embeds/**'+ - 'playwright.config.ts'+ embed-react:+ - 'apps/web/**'+ - 'packages/embeds/**'+ - 'playwright.config.ts'++ lint:+ name: Linters+ uses: ./.github/workflows/lint.yml+ secrets: inherit++ build:+ name: Production build+ uses: ./.github/workflows/production-build.yml+ secrets: inherit++ e2e-main:+ name: E2E tests+ needs: [changes, lint, build]+ uses: ./.github/workflows/e2e-main.yml+ secrets: inherit++ e2e-app-store:+ name: E2E App Store tests+ needs: [changes, lint, build]+ uses: ./.github/workflows/e2e-app-store.yml+ secrets: inherit++ e2e-embed:+ name: E2E embeds tests+ needs: [changes, lint, build]+ uses: ./.github/workflows/e2e-embed.yml+ secrets: inherit++ e2e-embed-react:+ name: E2E React embeds tests+ needs: [changes, lint, build]+ uses: ./.github/workflows/e2e-embed-react.yml+ secrets: inherit++ build-without-database:+ name: Production build (without database)+ uses: ./.github/workflows/production-build-without-database.yml+ secrets: inherit++ required:+ needs: [e2e-main, e2e-app-store, e2e-embed, e2e-embed-react, build-without-database]+ if: always()+ runs-on: buildjet-4vcpu-ubuntu-2204+ steps:+ - name: fail if conditional jobs failed+ if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'skipped') || contains(needs.*.result, 'cancelled')+ run: exit 1diff --git a/.github/workflows/test.yml b/.github/workflows/unit-tests.ymlsimilarity index 100%rename from .github/workflows/test.ymlrename to .github/workflows/unit-tests.yml