Skip to content

Scheduling infrastructure for absolutely everyone.

chore: Remove unit tests from running after crowd in (#15880)

Keith Williamsf940f6bd87b9
diff --git a/.github/workflows/api-v1-production-build.yml b/.github/workflows/api-v1-production-build.yml
index 80a24ef801b..1faaf6bb8a5 100644
--- a/.github/workflows/api-v1-production-build.yml
+++ b/.github/workflows/api-v1-production-build.yml
@@ -3,6 +3,9 @@ name: Production Builds
on:
workflow_call:
+permissions:
+ contents: read
+
env:
ALLOWED_HOSTNAMES: ${{ vars.CI_ALLOWED_HOSTNAMES }}
CALENDSO_ENCRYPTION_KEY: ${{ secrets.CI_CALENDSO_ENCRYPTION_KEY }}
diff --git a/.github/workflows/api-v2-production-build.yml b/.github/workflows/api-v2-production-build.yml
index 28fe054a93e..aa5709ea1c0 100644
--- a/.github/workflows/api-v2-production-build.yml
+++ b/.github/workflows/api-v2-production-build.yml
@@ -10,6 +10,8 @@ env:
jobs:
build:
name: Build API v2
+ permissions:
+ contents: read
runs-on: buildjet-4vcpu-ubuntu-2204
timeout-minutes: 30
services:
diff --git a/.github/workflows/check-types.yml b/.github/workflows/check-types.yml
index 3ed84d98b77..0a4eb817fc4 100644
--- a/.github/workflows/check-types.yml
+++ b/.github/workflows/check-types.yml
@@ -3,6 +3,8 @@ on:
workflow_call:
env:
NODE_OPTIONS: --max-old-space-size=4096
+permissions:
+ contents: read
jobs:
check-types:
runs-on: buildjet-4vcpu-ubuntu-2204
diff --git a/.github/workflows/e2e-app-store.yml b/.github/workflows/e2e-app-store.yml
index 2838a454f97..e0b36f40cc5 100644
--- a/.github/workflows/e2e-app-store.yml
+++ b/.github/workflows/e2e-app-store.yml
@@ -1,6 +1,9 @@
name: E2E App Store Tests
on:
workflow_call:
+permissions:
+ actions: write
+ contents: read
env:
NODE_OPTIONS: --max-old-space-size=4096
ALLOWED_HOSTNAMES: ${{ vars.CI_ALLOWED_HOSTNAMES }}
diff --git a/.github/workflows/e2e-embed-react.yml b/.github/workflows/e2e-embed-react.yml
index efd58e9f96a..4f114f5ef8d 100644
--- a/.github/workflows/e2e-embed-react.yml
+++ b/.github/workflows/e2e-embed-react.yml
@@ -1,6 +1,9 @@
name: E2E Embed React tests and booking flow (for non-embed as well)
on:
workflow_call:
+permissions:
+ actions: write
+ contents: read
env:
NODE_OPTIONS: --max-old-space-size=4096
ALLOWED_HOSTNAMES: ${{ vars.CI_ALLOWED_HOSTNAMES }}
diff --git a/.github/workflows/e2e-embed.yml b/.github/workflows/e2e-embed.yml
index 149f774968f..05d7015b880 100644
--- a/.github/workflows/e2e-embed.yml
+++ b/.github/workflows/e2e-embed.yml
@@ -1,6 +1,9 @@
name: E2E Embed Core tests and booking flow (for non-embed as well)
on:
workflow_call:
+permissions:
+ actions: write
+ contents: read
env:
NODE_OPTIONS: --max-old-space-size=4096
ALLOWED_HOSTNAMES: ${{ vars.CI_ALLOWED_HOSTNAMES }}
diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml
index b0084e82fdd..c0875274898 100644
--- a/.github/workflows/e2e.yml
+++ b/.github/workflows/e2e.yml
@@ -1,6 +1,9 @@
name: E2E
on:
workflow_call:
+permissions:
+ actions: write
+ contents: read
env:
NODE_OPTIONS: --max-old-space-size=4096
ALLOWED_HOSTNAMES: ${{ vars.CI_ALLOWED_HOSTNAMES }}
diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml
index d2a7aefdb86..6ccff66d9f9 100644
--- a/.github/workflows/integration-tests.yml
+++ b/.github/workflows/integration-tests.yml
@@ -1,6 +1,8 @@
name: Integration
on:
workflow_call:
+permissions:
+ contents: read
env:
NODE_OPTIONS: --max-old-space-size=4096
ALLOWED_HOSTNAMES: ${{ vars.CI_ALLOWED_HOSTNAMES }}
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index 1244202e8f4..f867ed61105 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -1,6 +1,9 @@
name: Lint
on:
workflow_call:
+permissions:
+ actions: write
+ contents: read
jobs:
lint:
runs-on: buildjet-4vcpu-ubuntu-2204
@@ -16,13 +19,6 @@ jobs:
- name: Merge lint reports
run: jq -s '[.[]]|flatten' lint-results/*.json &> lint-results/eslint_report.json
- - name: Annotate Code Linting Results
- uses: ataylorme/eslint-annotate-action@v2
- with:
- repo-token: ${{ secrets.GITHUB_TOKEN }}
- report-json: "lint-results/eslint_report.json"
- only-pr-files: false
-
- name: Upload ESLint report
if: ${{ always() }}
uses: actions/upload-artifact@v4
diff --git a/.github/workflows/nextjs-bundle-analysis.yml b/.github/workflows/nextjs-bundle-analysis.yml
index dc293e4501f..b92fd640f81 100644
--- a/.github/workflows/nextjs-bundle-analysis.yml
+++ b/.github/workflows/nextjs-bundle-analysis.yml
@@ -7,6 +7,10 @@ on:
branches:
- main
+permissions:
+ actions: write
+ contents: read
+
env:
ALLOWED_HOSTNAMES: ${{ vars.CI_ALLOWED_HOSTNAMES }}
CALENDSO_ENCRYPTION_KEY: ${{ secrets.CI_CALENDSO_ENCRYPTION_KEY }}
diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml
index 3bfb3732072..aad7d6d8629 100644
--- a/.github/workflows/pr.yml
+++ b/.github/workflows/pr.yml
@@ -8,6 +8,10 @@ on:
- gh-actions-test-branch
workflow_dispatch:
+permissions:
+ actions: write
+ contents: read
+
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
@@ -39,6 +43,8 @@ jobs:
needs: [changes]
runs-on: buildjet-2vcpu-ubuntu-2204
name: Check for E2E label
+ permissions:
+ pull-requests: read
outputs:
run-e2e: ${{ steps.check-if-pr-has-label.outputs.run-e2e == 'true' && (github.event.action != 'labeled' || (github.event.action == 'labeled' && github.event.label.name == 'ready-for-e2e')) }}
steps:
diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml
deleted file mode 100644
index 586bb47d2a8..00000000000
--- a/.github/workflows/pre-release.yml
+++ /dev/null
@@ -1,77 +0,0 @@
-name: Pre-release checks
-
-on:
- workflow_dispatch:
-
-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@v4
- - uses: ./.github/actions/dangerous-git-checkout
- - uses: dorny/paths-filter@v3
- 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 builds
- 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
-
- required:
- needs: [changes, lint, build, e2e, e2e-app-store, e2e-embed, e2e-embed-react]
- if: always()
- runs-on: buildjet-2vcpu-ubuntu-2204
- steps:
- - name: fail if conditional jobs failed
- if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'skipped') || contains(needs.*.result, 'cancelled')
- run: exit 1
diff --git a/.github/workflows/production-build-without-database.yml b/.github/workflows/production-build-without-database.yml
index 51949d8fd3a..3790f6f3ad5 100644
--- a/.github/workflows/production-build-without-database.yml
+++ b/.github/workflows/production-build-without-database.yml
@@ -2,6 +2,9 @@ name: Production Builds
on:
workflow_call:
+permissions:
+ contents: read
+
env:
ALLOWED_HOSTNAMES: ${{ vars.CI_ALLOWED_HOSTNAMES }}
CALENDSO_ENCRYPTION_KEY: ${{ secrets.CI_CALENDSO_ENCRYPTION_KEY }}
diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml
index aa2f9c2d273..a3c94d60559 100644
--- a/.github/workflows/unit-tests.yml
+++ b/.github/workflows/unit-tests.yml
@@ -1,9 +1,8 @@
name: Unit
on:
workflow_call:
- workflow_run:
- workflows: [Crowdin Action]
- types: [completed]
+permissions:
+ contents: read
jobs:
test:
name: Unit
diff --git a/.github/workflows/yarn-install.yml b/.github/workflows/yarn-install.yml
index d5a8a00c3db..9e6821406bd 100644
--- a/.github/workflows/yarn-install.yml
+++ b/.github/workflows/yarn-install.yml
@@ -3,6 +3,9 @@ name: Yarn install
on:
workflow_call:
+permissions:
+ contents: read
+
jobs:
setup:
name: Yarn install & cache