Add CI timeouts and enable playwright (#8405)
This commit is contained in:
1
.github/workflows/cd-deploy-main.yaml
vendored
1
.github/workflows/cd-deploy-main.yaml
vendored
@ -1,4 +1,5 @@
|
|||||||
name: CD deploy main
|
name: CD deploy main
|
||||||
|
timeout-minutes: 3
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
|
|||||||
1
.github/workflows/cd-deploy-tag.yaml
vendored
1
.github/workflows/cd-deploy-tag.yaml
vendored
@ -1,4 +1,5 @@
|
|||||||
name: CD deploy tag
|
name: CD deploy tag
|
||||||
|
timeout-minutes: 3
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
|
|||||||
1
.github/workflows/ci-chrome-extension.yaml
vendored
1
.github/workflows/ci-chrome-extension.yaml
vendored
@ -1,4 +1,5 @@
|
|||||||
name: CI Chrome Extension
|
name: CI Chrome Extension
|
||||||
|
timeout-minutes: 15
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
|
|||||||
@ -1,34 +1,43 @@
|
|||||||
name: Playwright Tests
|
name: CI E2E Tests
|
||||||
|
timeout-minutes: 30
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ main, master ]
|
branches:
|
||||||
|
- main
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ main, master ]
|
branches:
|
||||||
|
- '**'
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
timeout-minutes: 60
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: lts/*
|
node-version: lts/*
|
||||||
|
|
||||||
- name: Check for changed files
|
- name: Check for changed files
|
||||||
id: changed-files
|
id: changed-files
|
||||||
uses: tj-actions/changed-files@v11
|
uses: tj-actions/changed-files@v11
|
||||||
with:
|
with:
|
||||||
files: |
|
files: |
|
||||||
packages/** # Adjust this to your relevant directories
|
packages/**
|
||||||
playwright.config.ts # Include any relevant config files
|
playwright.config.ts
|
||||||
|
|
||||||
- name: Skip if no relevant changes
|
- name: Skip if no relevant changes
|
||||||
if: steps.changed-files.outputs.any_changed != 'true'
|
if: steps.changed-files.outputs.any_changed == 'false'
|
||||||
run: echo "No relevant changes detected. Marking as valid."
|
run: echo "No relevant changes detected. Marking as valid."
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
if: steps.changed-files.outputs.any_changed == 'true'
|
if: steps.changed-files.outputs.any_changed == 'true'
|
||||||
run: npm install -g yarn && yarn
|
uses: ./.github/workflows/actions/yarn-install
|
||||||
- name: Install Playwright Browsers
|
- name: Install Playwright Browsers
|
||||||
if: steps.changed-files.outputs.any_changed == 'true'
|
if: steps.changed-files.outputs.any_changed == 'true'
|
||||||
run: yarn playwright install --with-deps
|
run: yarn playwright install --with-deps
|
||||||
3
.github/workflows/ci-front.yaml
vendored
3
.github/workflows/ci-front.yaml
vendored
@ -1,4 +1,5 @@
|
|||||||
name: CI Front
|
name: CI Front
|
||||||
|
timeout-minutes: 30
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
@ -59,7 +60,6 @@ jobs:
|
|||||||
run: npx nx storybook:build twenty-front
|
run: npx nx storybook:build twenty-front
|
||||||
front-sb-test:
|
front-sb-test:
|
||||||
runs-on: shipfox-8vcpu-ubuntu-2204
|
runs-on: shipfox-8vcpu-ubuntu-2204
|
||||||
timeout-minutes: 60
|
|
||||||
needs: front-sb-build
|
needs: front-sb-build
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
@ -102,7 +102,6 @@ jobs:
|
|||||||
run: npx nx storybook:serve-and-test:static twenty-front --configuration=${{ matrix.storybook_scope }}
|
run: npx nx storybook:serve-and-test:static twenty-front --configuration=${{ matrix.storybook_scope }}
|
||||||
front-sb-test-performance:
|
front-sb-test-performance:
|
||||||
runs-on: shipfox-8vcpu-ubuntu-2204
|
runs-on: shipfox-8vcpu-ubuntu-2204
|
||||||
timeout-minutes: 60
|
|
||||||
env:
|
env:
|
||||||
REACT_APP_SERVER_BASE_URL: http://localhost:3000
|
REACT_APP_SERVER_BASE_URL: http://localhost:3000
|
||||||
NX_REJECT_UNKNOWN_LOCAL_CACHE: 0
|
NX_REJECT_UNKNOWN_LOCAL_CACHE: 0
|
||||||
|
|||||||
1
.github/workflows/ci-release-create.yaml
vendored
1
.github/workflows/ci-release-create.yaml
vendored
@ -1,4 +1,5 @@
|
|||||||
name: "Release: create"
|
name: "Release: create"
|
||||||
|
timeout-minutes: 10
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
|
|||||||
1
.github/workflows/ci-release-merge.yaml
vendored
1
.github/workflows/ci-release-merge.yaml
vendored
@ -1,4 +1,5 @@
|
|||||||
name: "Release: on merge"
|
name: "Release: on merge"
|
||||||
|
timeout-minutes: 10
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
types:
|
types:
|
||||||
|
|||||||
1
.github/workflows/ci-server.yaml
vendored
1
.github/workflows/ci-server.yaml
vendored
@ -1,4 +1,5 @@
|
|||||||
name: CI Server
|
name: CI Server
|
||||||
|
timeout-minutes: 30
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
name: 'Test Docker Compose'
|
name: 'Test Docker Compose'
|
||||||
|
timeout-minutes: 10
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
|
|||||||
1
.github/workflows/ci-tinybird.yaml
vendored
1
.github/workflows/ci-tinybird.yaml
vendored
@ -1,4 +1,5 @@
|
|||||||
name: CI Tinybird
|
name: CI Tinybird
|
||||||
|
timeout-minutes: 10
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
|
|||||||
1
.github/workflows/ci-utils.yaml
vendored
1
.github/workflows/ci-utils.yaml
vendored
@ -1,4 +1,5 @@
|
|||||||
name: CI Utils
|
name: CI Utils
|
||||||
|
timeout-minutes: 3
|
||||||
on:
|
on:
|
||||||
# it's usually not recommended to use pull_request_target
|
# it's usually not recommended to use pull_request_target
|
||||||
# but we consider it's safe here if we keep the same steps
|
# but we consider it's safe here if we keep the same steps
|
||||||
|
|||||||
1
.github/workflows/ci-website.yaml
vendored
1
.github/workflows/ci-website.yaml
vendored
@ -1,4 +1,5 @@
|
|||||||
name: CI Website
|
name: CI Website
|
||||||
|
timeout-minutes: 10
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
|
|||||||
Reference in New Issue
Block a user