Skip to content

Commit 47050d0

Browse files
Merge branch 'main' of github.com:OrtooApps/framework
2 parents 7833094 + 8ae1762 commit 47050d0

File tree

1 file changed

+3
-16
lines changed

1 file changed

+3
-16
lines changed

.github/workflows/create-org-and-deploy.yaml

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ name: Deploy and Run all Unit Tests
22
on:
33
push:
44
branches:
5-
- '*'
5+
- '**/*'
66
- main
77
pull_request:
88
types: [ opened ]
99
branches:
10-
- '*'
10+
- '**/*'
1111
- main
1212
jobs:
1313
create-org-and-deploy:
@@ -65,23 +65,10 @@ jobs:
6565
- name: Deploy framework to Org
6666
run: sfdx force:source:deploy -p framework --targetusername "${{env.ORG_ALIAS_PREFIX}}${{github.run_number}}"
6767

68-
# Prepare a test-results directory
69-
70-
- name: Prepare test-results directory
71-
run: mkdir test-results
72-
7368
# Run All Unit Tests
7469

7570
- name: Run All Unit Tests
76-
run: sfdx force:apex:test:run -r junit -u "${{env.ORG_ALIAS_PREFIX}}${{github.run_number}}" --wait 20 > test-results/framework-apex-tests.xml
77-
78-
# Publish the Unit Test results
79-
80-
- name: Publish Unit Test Results
81-
uses: EnricoMi/publish-unit-test-result-action@v1
82-
if: always()
83-
with:
84-
files: test-results/*.xml
71+
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
8572

8673
# Delete Scratch Org
8774

0 commit comments

Comments
 (0)