From 26a5bec55baabf95e936903c8de2e2c6d8b8cb28 Mon Sep 17 00:00:00 2001 From: Charles Bochet Date: Fri, 10 Jan 2025 21:09:58 +0100 Subject: [PATCH] Try migrating to depot --- .github/workflows/ci-front.yaml | 24 ++++++++++++------------ packages/twenty-front/nyc.config.cjs | 10 +++++----- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/ci-front.yaml b/.github/workflows/ci-front.yaml index 271a5a3c4d28..aa1b55e1824c 100644 --- a/.github/workflows/ci-front.yaml +++ b/.github/workflows/ci-front.yaml @@ -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 @@ -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 @@ -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 @@ -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 @@ -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: @@ -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 }} @@ -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: | @@ -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: diff --git a/packages/twenty-front/nyc.config.cjs b/packages/twenty-front/nyc.config.cjs index 639a738ff9e4..e47f9eb73efb 100644 --- a/packages/twenty-front/nyc.config.cjs +++ b/packages/twenty-front/nyc.config.cjs @@ -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'], }; @@ -40,4 +40,4 @@ module.exports = ? modulesCoverage : storybookStoriesFolders === 'performance' ? performanceCoverage - : globalCoverage; + : globalCoverage;