Skip to content

Commit c983ac9

Browse files
ci: add ci-website workflow for twenty-website-new (#20281)
## Summary - Recreates the `ci-website.yaml` workflow that was removed alongside `twenty-website` in #20270, now scoped to `twenty-website-new`. - Replaces the old build-only job with a `[lint, typecheck, test]` matrix run via `./.github/actions/nx-affected` on `tag:scope:website` — same idiom used by `ci-shared.yaml`. - Path filter watches `packages/twenty-website-new/**` and `packages/twenty-shared/**` (since website-new depends on `twenty-shared`), plus `package.json` / `yarn.lock`. ## Test plan - [ ] CI Website workflow appears on this PR and the `lint`, `typecheck`, `test` matrix jobs all pass - [ ] `ci-website-status-check` is green
1 parent 820f97f commit c983ac9

1 file changed

Lines changed: 58 additions & 0 deletions

File tree

.github/workflows/ci-website.yaml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: CI Website
2+
3+
on:
4+
pull_request:
5+
merge_group:
6+
7+
permissions:
8+
contents: read
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
13+
14+
jobs:
15+
changed-files-check:
16+
if: github.event_name != 'merge_group'
17+
uses: ./.github/workflows/changed-files.yaml
18+
with:
19+
files: |
20+
package.json
21+
yarn.lock
22+
packages/twenty-website-new/**
23+
packages/twenty-shared/**
24+
website-task:
25+
needs: changed-files-check
26+
if: needs.changed-files-check.outputs.any_changed == 'true'
27+
timeout-minutes: 30
28+
runs-on: ubuntu-latest
29+
env:
30+
NODE_OPTIONS: '--max-old-space-size=6144'
31+
strategy:
32+
matrix:
33+
task: [lint, typecheck, test]
34+
steps:
35+
- name: Cancel Previous Runs
36+
uses: styfle/cancel-workflow-action@0.11.0
37+
with:
38+
access_token: ${{ github.token }}
39+
- name: Fetch custom Github Actions and base branch history
40+
uses: actions/checkout@v4
41+
with:
42+
fetch-depth: 10
43+
- name: Install dependencies
44+
uses: ./.github/actions/yarn-install
45+
- name: Run ${{ matrix.task }} task
46+
uses: ./.github/actions/nx-affected
47+
with:
48+
tag: scope:website
49+
tasks: ${{ matrix.task }}
50+
ci-website-status-check:
51+
if: always() && !cancelled()
52+
timeout-minutes: 5
53+
runs-on: ubuntu-latest
54+
needs: [changed-files-check, website-task]
55+
steps:
56+
- name: Fail job if any needs failed
57+
if: contains(needs.*.result, 'failure')
58+
run: exit 1

0 commit comments

Comments
 (0)