File tree Expand file tree Collapse file tree 1 file changed +3
-16
lines changed Expand file tree Collapse file tree 1 file changed +3
-16
lines changed Original file line number Diff line number Diff line change @@ -2,12 +2,12 @@ name: Deploy and Run all Unit Tests
2
2
on :
3
3
push :
4
4
branches :
5
- - ' *'
5
+ - ' **/* '
6
6
- main
7
7
pull_request :
8
8
types : [ opened ]
9
9
branches :
10
- - ' *'
10
+ - ' **/* '
11
11
- main
12
12
jobs :
13
13
create-org-and-deploy :
@@ -65,23 +65,10 @@ jobs:
65
65
- name : Deploy framework to Org
66
66
run : sfdx force:source:deploy -p framework --targetusername "${{env.ORG_ALIAS_PREFIX}}${{github.run_number}}"
67
67
68
- # Prepare a test-results directory
69
-
70
- - name : Prepare test-results directory
71
- run : mkdir test-results
72
-
73
68
# Run All Unit Tests
74
69
75
70
- 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
85
72
86
73
# Delete Scratch Org
87
74
You can’t perform that action at this time.
0 commit comments