Skip to content

Commit

Permalink
Back to the original format - you get more info on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
rob-baillie-ortoo committed Dec 1, 2021
1 parent 680e5d5 commit d466b70
Showing 1 changed file with 3 additions and 18 deletions.
21 changes: 3 additions & 18 deletions .github/workflows/create-org-and-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@ name: Deploy and Run all Unit Tests
on:
push:
branches:
- 'feature/*'
- 'releases/*'
- '**/*'
- main
pull_request:
types: [ opened ]
branches:
- 'feature/*'
- 'releases/*'
- '**/*'
- main
jobs:
create-org-and-deploy:
Expand Down Expand Up @@ -67,23 +65,10 @@ jobs:
- name: Deploy framework to Org
run: sfdx force:source:deploy -p framework --targetusername "${{env.ORG_ALIAS_PREFIX}}${{github.run_number}}"

# Prepare a test-results directory

- name: Prepare test-results directory
run: mkdir test-results

# Run All Unit Tests

- name: Run All Unit Tests
run: sfdx force:apex:test:run -r junit -u "${{env.ORG_ALIAS_PREFIX}}${{github.run_number}}" --wait 20 > test-results/framework-apex-tests.xml

# Publish the Unit Test results

- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v1
if: always()
with:
files: test-results/*.xml
run: sfdx force:apex:test:run -r human -u "${{env.ORG_ALIAS_PREFIX}}${{github.run_number}}" --wait 20 | grep -v ' Pass '

# Delete Scratch Org

Expand Down

0 comments on commit d466b70

Please sign in to comment.