ci: collect coverage in any branch except for releases (#31229)

Co-authored-by: Guilherme Gazzo <guilhermegazzo@gmail.com>
This commit is contained in:
Marcos Spessatto Defendi 2023-12-15 15:09:58 -03:00 committed by GitHub
parent c19d64093b
commit b1426ed098
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 9 deletions

View File

@ -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: |

View File

@ -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