mirror of
https://github.com/RocketChat/Rocket.Chat.git
synced 2025-12-28 06:47:25 +00:00
ci: collect coverage in any branch except for releases (#31229)
Co-authored-by: Guilherme Gazzo <guilhermegazzo@gmail.com>
This commit is contained in:
parent
c19d64093b
commit
b1426ed098
8
.github/actions/meteor-build/action.yml
vendored
8
.github/actions/meteor-build/action.yml
vendored
@ -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: |
|
||||
|
||||
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user