From 043a3a10ec27fd718d53946b548e05dd9c2ae00c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gast=C3=B3n=20Fournier?= Date: Fri, 4 Aug 2023 11:51:18 +0200 Subject: [PATCH] chore: reduce build time (#4405) ## About the changes ~~Test if max-workers can speed up test runs~~ No, this didn't help. Disabling the job that takes longer should help mitigate. We lose the coverage report but we still test our code: https://github.com/Unleash/unleash/actions/runs/5751945832/job/15591813034?pr=4405#step:7:2396 This cuts the build time by 50% and moving this to a daily schedule --- .github/workflows/build_prs_jest_report.yaml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build_prs_jest_report.yaml b/.github/workflows/build_prs_jest_report.yaml index cd467af393..759db0a9de 100644 --- a/.github/workflows/build_prs_jest_report.yaml +++ b/.github/workflows/build_prs_jest_report.yaml @@ -1,10 +1,13 @@ -name: PR -> Test & Coverage +name: Test & Coverage on: - pull_request: - paths-ignore: - - frontend/** - - website/** + # pull_request: + # paths-ignore: + # - frontend/** + # - website/** + schedule: # Run every day + - cron: '0 8 * * *' + workflow_dispatch: jobs: build: