|
58 | 58 | if: steps.changed-files.outputs.any_changed == 'true'
|
59 | 59 | run: npx nx storybook:build twenty-front
|
60 | 60 | front-sb-test:
|
61 |
| - runs-on: ci-8-cores |
| 61 | + runs-on: shipfox-8vcpu-ubuntu-2204 |
62 | 62 | timeout-minutes: 60
|
63 | 63 | needs: front-sb-build
|
64 | 64 | strategy:
|
|
82 | 82 | if: steps.changed-files.outputs.any_changed == 'false'
|
83 | 83 | run: echo "No relevant changes. Skipping CI."
|
84 | 84 |
|
85 |
| - - name: Install dependencies |
86 |
| - if: steps.changed-files.outputs.any_changed == 'true' |
87 |
| - uses: ./.github/workflows/actions/yarn-install |
88 |
| - - name: Install Playwright |
89 |
| - if: steps.changed-files.outputs.any_changed == 'true' |
90 |
| - run: cd packages/twenty-front && npx playwright install |
91 |
| - - name: Front / Restore Storybook Task Cache |
92 |
| - if: steps.changed-files.outputs.any_changed == 'true' |
93 |
| - uses: ./.github/workflows/actions/task-cache |
94 |
| - with: |
95 |
| - tag: scope:frontend |
96 |
| - tasks: storybook:build |
97 |
| - - name: Front / Write .env |
98 |
| - if: steps.changed-files.outputs.any_changed == 'true' |
99 |
| - run: npx nx reset:env twenty-front |
100 |
| - - name: Run storybook tests |
101 |
| - if: steps.changed-files.outputs.any_changed == 'true' |
102 |
| - run: npx nx storybook:serve-and-test:static twenty-front --configuration=${{ matrix.storybook_scope }} |
103 |
| - front-sb-test-shipfox: |
104 |
| - runs-on: shipfox-8vcpu-ubuntu-2204 |
105 |
| - timeout-minutes: 60 |
106 |
| - needs: front-sb-build |
107 |
| - strategy: |
108 |
| - matrix: |
109 |
| - storybook_scope: [pages, modules] |
110 |
| - env: |
111 |
| - REACT_APP_SERVER_BASE_URL: http://localhost:3000 |
112 |
| - NX_REJECT_UNKNOWN_LOCAL_CACHE: 0 |
113 |
| - steps: |
114 |
| - - name: Fetch local actions |
115 |
| - uses: actions/checkout@v4 |
116 |
| - with: |
117 |
| - fetch-depth: 0 |
118 |
| - - name: Check for changed files |
119 |
| - id: changed-files |
120 |
| - uses: tj-actions/changed-files@v11 |
121 |
| - with: |
122 |
| - files: | |
123 |
| - packages/twenty-front/** |
124 |
| -
|
125 |
| - - name: Skip if no relevant changes |
126 |
| - if: steps.changed-files.outputs.any_changed == 'false' |
127 |
| - run: echo "No relevant changes. Skipping CI." |
128 |
| - |
129 | 85 | - name: Install dependencies
|
130 | 86 | if: steps.changed-files.outputs.any_changed == 'true'
|
131 | 87 | uses: ./.github/workflows/actions/yarn-install
|
|
0 commit comments