Skip to content

Commit

Permalink
Merge pull request #1 from OrtooApps/feature/test-a-failing-test
Browse files Browse the repository at this point in the history
Feature/test a failing test
  • Loading branch information
rob-baillie-ortoo authored Dec 1, 2021
2 parents ddfcb0b + ae2dee9 commit 8ae1762
Showing 1 changed file with 3 additions and 16 deletions.
19 changes: 3 additions & 16 deletions .github/workflows/create-org-and-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ name: Deploy and Run all Unit Tests
on:
push:
branches:
- '*'
- '**/*'
- main
pull_request:
types: [ opened ]
branches:
- '*'
- '**/*'
- main
jobs:
create-org-and-deploy:
Expand Down Expand Up @@ -65,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 '; test ${PIPESTATUS[0]} -eq 0

# Delete Scratch Org

Expand Down

0 comments on commit 8ae1762

Please sign in to comment.