Skip to content

Commit 7a2c41d

Browse files
committed
Introduced quality gate in build scripts and CI
1 parent d2c47d2 commit 7a2c41d

File tree

4 files changed

+23
-606
lines changed

4 files changed

+23
-606
lines changed

.github/workflows/ci-pr.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,13 @@ jobs:
4141

4242
# LWC unit tests
4343
- name: 'LWC unit tests'
44-
run: npm run test:unit:coverage
44+
run: npm run test:coverage
45+
46+
# Upload LWC code coverage data
47+
- name: 'Upload code coverage for LWC to Codecov.io'
48+
uses: codecov/codecov-action@v1
49+
with:
50+
flags: LWC
4551

4652
scratch-org-tests:
4753
runs-on: ubuntu-latest
@@ -80,6 +86,12 @@ jobs:
8086
- name: 'Run Apex tests'
8187
run: 'sfdx force:apex:test:run -c -r human -d ./tests/apex -w 20'
8288

89+
# Upload Apex code coverage data
90+
- name: 'Upload code coverage for Apex to Codecov.io'
91+
uses: codecov/codecov-action@v1
92+
with:
93+
flags: Apex
94+
8395
# Housekeeping
8496
- name: 'Delete scratch org'
8597
if: always()

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242

4343
# LWC unit tests
4444
- name: 'LWC unit tests'
45-
run: npm run test:unit:coverage
45+
run: npm run test:coverage
4646

4747
# Upload LWC code coverage data
4848
- name: 'Upload code coverage for LWC to Codecov.io'

0 commit comments

Comments
 (0)