From b1426ed098e3e98d1314ed04f8522a7bc1eee1e9 Mon Sep 17 00:00:00 2001 From: Marcos Spessatto Defendi Date: Fri, 15 Dec 2023 15:09:58 -0300 Subject: [PATCH] ci: collect coverage in any branch except for releases (#31229) Co-authored-by: Guilherme Gazzo --- .github/actions/meteor-build/action.yml | 8 +------- .github/workflows/ci.yml | 4 ++-- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/actions/meteor-build/action.yml b/.github/actions/meteor-build/action.yml index 0229e5bb5ba..e5b5d774078 100644 --- a/.github/actions/meteor-build/action.yml +++ b/.github/actions/meteor-build/action.yml @@ -103,9 +103,8 @@ runs: working-directory: ./apps/meteor run: meteor reset - - name: Build Rocket.Chat From Pull Request + - name: Build Rocket.Chat shell: bash - if: startsWith(github.ref, 'refs/pull/') == true env: METEOR_PROFILE: 1000 BABEL_ENV: ${{ inputs.coverage == 'true' && 'coverage' || '' }} @@ -118,11 +117,6 @@ runs: yarn build:ci -- --directory /tmp/dist - - name: Build Rocket.Chat - shell: bash - if: startsWith(github.ref, 'refs/pull/') != true - run: yarn build:ci -- --directory /tmp/dist - - name: Prepare build shell: bash run: | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index be796470323..fdcea4c4213 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -183,7 +183,7 @@ jobs: - uses: ./.github/actions/meteor-build with: node-version: ${{ needs.release-versions.outputs.node-version }} - coverage: true + coverage: ${{ github.event_name != 'release' }} build-prod: name: 📦 Meteor Build - official @@ -207,7 +207,7 @@ jobs: - uses: ./.github/actions/meteor-build with: node-version: ${{ needs.release-versions.outputs.node-version }} - coverage: false + coverage: ${{ github.event_name != 'release' }} build-gh-docker-coverage: name: 🚢 Build Docker Images for Testing