Skip to content

Commit

Permalink
test: codecov flags (#30302)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggazzo authored Sep 6, 2023
1 parent 516658d commit 0409097
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci-test-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ on:
required: false
REPORTER_ROCKETCHAT_API_KEY:
required: false
CODECOV_TOKEN:
required: false

env:
MONGO_URL: mongodb://localhost:27017/rocketchat?replicaSet=rs0&directConnection=true
Expand Down Expand Up @@ -237,6 +239,7 @@ jobs:
directory: ./apps/meteor
flags: e2e
verbose: true
token: ${{ secrets.CODECOV_TOKEN }}

- name: Store e2e-ee-coverage
if: inputs.type == 'ui' && inputs.release == 'ee'
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ci-test-unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
node-version:
required: true
type: string
secrets:
CODECOV_TOKEN:
required: false

env:
MONGO_URL: mongodb://localhost:27017/rocketchat?replicaSet=rs0&directConnection=true
Expand Down Expand Up @@ -36,3 +39,4 @@ jobs:
with:
flags: unit
verbose: true
token: ${{ secrets.CODECOV_TOKEN }}
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,8 @@ jobs:
uses: ./.github/workflows/ci-test-unit.yml
with:
node-version: ${{ needs.release-versions.outputs.node-version }}
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

test-api:
name: 🔨 Test API (CE)
Expand Down Expand Up @@ -431,6 +433,7 @@ jobs:
QASE_API_TOKEN: ${{ secrets.QASE_API_TOKEN }}
REPORTER_ROCKETCHAT_API_KEY: ${{ secrets.REPORTER_ROCKETCHAT_API_KEY }}
REPORTER_ROCKETCHAT_URL: ${{ secrets.REPORTER_ROCKETCHAT_URL }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

tests-done:
name: ✅ Tests Done
Expand Down
9 changes: 9 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
codecov:
max_report_age: off
coverage:
status:
patch: off
Expand All @@ -10,6 +12,13 @@ coverage:
flags:
- client
flags:
unit:
carryforward: true
e2e:
paths:
- apps/meteor/
carryforward: true

client:
paths:
- apps/meteor/client
Expand Down

0 comments on commit 0409097

Please sign in to comment.