Skip to content

Commit

Permalink
Try migrating to depot
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesBochet committed Jan 10, 2025
1 parent 5ec28af commit 26a5bec
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/ci-front.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ concurrency:
jobs:
front-sb-build:
timeout-minutes: 30
runs-on: ci-8-cores
runs-on: depot-ubuntu-22.04-8
env:
REACT_APP_SERVER_BASE_URL: http://localhost:3000
NX_REJECT_UNKNOWN_LOCAL_CACHE: 0
Expand Down Expand Up @@ -54,9 +54,9 @@ jobs:
.nx/cache
node_modules/.cache
packages/*/node_modules/.cache
key: storybook-build-ci-8-cores-runner-${{ github.ref_name }}-${{ github.sha }}
key: storybook-build-depot-ubuntu-22.04-8-runner-${{ github.ref_name }}-${{ github.sha }}
restore-keys: |
storybook-build-ci-8-cores-runner-${{ github.ref_name }}-
storybook-build-depot-ubuntu-22.04-8-runner-${{ github.ref_name }}-
- name: Front / Write .env
if: steps.changed-files.outputs.any_changed == 'true'
run: npx nx reset:env twenty-front
Expand All @@ -75,7 +75,7 @@ jobs:
packages/*/node_modules/.cache
front-sb-test:
timeout-minutes: 30
runs-on: ci-8-cores
runs-on: depot-ubuntu-22.04-8
needs: front-sb-build
strategy:
fail-fast: false
Expand Down Expand Up @@ -115,9 +115,9 @@ jobs:
.nx/cache
node_modules/.cache
packages/*/node_modules/.cache
key: storybook-build-ci-8-cores-runner-${{ github.ref_name }}-${{ github.sha }}
key: storybook-build-depot-ubuntu-22.04-8-runner-${{ github.ref_name }}-${{ github.sha }}
restore-keys: |
storybook-build-ci-8-cores-runner-${{ github.ref_name }}-
storybook-build-depot-ubuntu-22.04-8-runner-${{ github.ref_name }}-
- name: Front / Write .env
if: steps.changed-files.outputs.any_changed == 'true'
run: npx nx reset:env twenty-front
Expand All @@ -135,13 +135,13 @@ jobs:
path: packages/twenty-front/coverage/storybook/coverage-shard-${{matrix.shard}}.json
merge-reports-and-check-coverage:
timeout-minutes: 30
runs-on: ci-8-cores
runs-on: depot-ubuntu-22.04-8
needs: front-sb-test
env:
PATH_TO_COVERAGE: packages/twenty-front/coverage/storybook
strategy:
matrix:
storybook_scope: [modules, pages, performance]
storybook_scope: [modules, pages]
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -176,7 +176,7 @@ jobs:
timeout-minutes: 30
if: contains(github.event.pull_request.labels.*.name, 'run-chromatic') || github.event_name == 'push'
needs: front-sb-build
runs-on: ci-8-cores
runs-on: depot-ubuntu-22.04-8
env:
REACT_APP_SERVER_BASE_URL: http://127.0.0.1:3000
CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
Expand Down Expand Up @@ -209,9 +209,9 @@ jobs:
.nx/cache
node_modules/.cache
packages/*/node_modules/.cache
key: storybook-build-ci-8-cores-runner-${{ github.ref_name }}-${{ github.sha }}
key: storybook-build-depot-ubuntu-22.04-8-runner-${{ github.ref_name }}-${{ github.sha }}
restore-keys: |
storybook-build-ci-8-cores-runner-${{ github.ref_name }}-
storybook-build-depot-ubuntu-22.04-8-runner-${{ github.ref_name }}-
- name: Front / Write .env
if: steps.changed-files.outputs.any_changed == 'true'
run: |
Expand All @@ -223,7 +223,7 @@ jobs:
run: npx nx run twenty-front:chromatic:ci
front-task:
timeout-minutes: 30
runs-on: ci-8-cores
runs-on: depot-ubuntu-22.04-8
env:
NX_REJECT_UNKNOWN_LOCAL_CACHE: 0
strategy:
Expand Down
10 changes: 5 additions & 5 deletions packages/twenty-front/nyc.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ const pagesCoverage = {
};

const performanceCoverage = {
branches: 35,
statements: 60,
lines: 60,
functions: 45,
branches: 24,
statements: 40,
lines: 40,
functions: 30,
exclude: ['src/generated/**/*', 'src/modules/**/*', 'src/**/*.ts'],
};

Expand All @@ -40,4 +40,4 @@ module.exports =
? modulesCoverage
: storybookStoriesFolders === 'performance'
? performanceCoverage
: globalCoverage;
: globalCoverage;

0 comments on commit 26a5bec

Please sign in to comment.