diff --git a/.github/workflows/create-org-and-deploy.yaml b/.github/workflows/create-org-and-deploy.yaml index c868f77bc2f..49c99334767 100644 --- a/.github/workflows/create-org-and-deploy.yaml +++ b/.github/workflows/create-org-and-deploy.yaml @@ -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: @@ -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