Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
johnforeland committed Oct 4, 2020
1 parent 3a9a530 commit ac2ebbe
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/helper_promotion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,12 @@ jobs:
runs-on: ubuntu-latest
needs: promote-package
steps:
# Authorize SFDX
- name: Authorize SFDX
uses: sfdx-actions/setup-sfdx@v1
with:
sfdx-auth-url: ${{ secrets.PROD_SFDX_URL }}

# Checkout code in master
- name: Checkout source code from master
uses: actions/checkout@master
Expand All @@ -129,7 +135,6 @@ jobs:
echo "::set-output name=bodyVersion::$(cat sfdx-project.json | jq '.packageDirectories[0].versionNumber' -r | sed 's/.\{5\}$//')"
echo "::set-output name=codeCoverage::$( sfdx force:package:version:report -p ${{ github.event.inputs.packageId }} --json | jq '.result.CodeCoverage.apexCodeCoveragePercentage' -r )"
# Generate changelog from commits
- name: Generate changelog
id: changelog
Expand All @@ -149,7 +154,7 @@ jobs:
**Version**: ${{ steps.release-fields.outputs.bodyVersion }}
**Package ID**: ${{ github.event.inputs.packageId }}
**Code Coverage**: ${{ steps.release-fields.outputs.codeCoverage }}%
**Author**: ${{ github.actor }}
**Comment**: ${{ github.event.inputs.comment }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pull-request_validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ jobs:
echo "::set-output name=classes::$( echo $classes | sed 's/\(.*\),/\1 /' )"
# Run Apex tests in scratch org
# TODO throw error on below 75% code coverage
- name: "Run Apex tests"
run: "sfdx force:apex:test:run -t ${{ steps.test-classes-in-repo.outputs.classes }} -c -r human -d ./tests/apex -w 20"

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/push_create-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ jobs:
rm -f ./INTEGRATION_SANDBOX_SFDX_URL.txt
# Create package version
# TODO throw error on below 75% code coverage
- name: "Create package version"
id: package-version-create
run: |
Expand Down

0 comments on commit ac2ebbe

Please sign in to comment.