Skip to content

Commit

Permalink
--amend
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasparrague committed Jun 5, 2024
1 parent 6792fb1 commit 89f8922
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/code-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,23 @@ jobs:
- name: Authenticate Dev Hub
run: 'sfdx force:auth:sfdxurl:store -f ./SALESFORCE_AUTH_URL.txt -a devhub -d'

- name: Authenticate Target Org
run: 'sfdx force:auth:sfdxurl:store -f ./SALESFORCE_AUTH_URL.txt -a targetOrg'

- name: Create Scratch Org
run: sfdx org create scratch --target-dev-hub devhub --definition-file config/project-scratch-def.json --alias ciorg --set-default
- name: Deploy source
run: sfdx project deploy start -o targetOrg
run: sfdx force:source:push

- name: Run Apex tests
run: sfdx apex run test -o targetOrg --codecoverage --resultformat human -d ./
run: sfdx force:apex:test:run --codecoverage --resultformat human -d ./

- name: Upload code coverage for Apex to Codecov.io
uses: codecov/codecov-action@v2
with:
flags: Apex

cleanup:
runs-on: ubuntu-latest
needs: [build]
steps:
- name: Delete Scratch Org
run: sfdx force:org:delete --targetusername ciorg --noprompt

0 comments on commit 89f8922

Please sign in to comment.