From b802ced0f56260e37670b2dfafd6566f6fba7d3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gast=C3=B3n=20Fournier?= Date: Tue, 10 Oct 2023 15:35:11 +0200 Subject: [PATCH] chore: avoid building frontend if not needed (#4982) ## About the changes Looks like we're building twice: https://github.com/Unleash/unleash/actions/runs/6468079228/job/17559391393#step:5:136 --- .github/workflows/build.yaml | 2 +- .github/workflows/build_coverage.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 916c9ff600..6697969291 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -39,7 +39,7 @@ jobs: node-version: 18.17 cache: 'yarn' - run: yarn - - run: yarn build:frontend + - run: yarn build:frontend:if-needed - run: yarn lint - run: yarn run test:report # This adds test results as github check to the workflow env: diff --git a/.github/workflows/build_coverage.yaml b/.github/workflows/build_coverage.yaml index 10fae727b4..10c98c59e7 100644 --- a/.github/workflows/build_coverage.yaml +++ b/.github/workflows/build_coverage.yaml @@ -39,7 +39,7 @@ jobs: node-version: 18.17 cache: 'yarn' - run: yarn - - run: yarn build:frontend + - run: yarn build:frontend:if-needed - run: yarn run test:coverage env: CI: true