testmo checks fails on community pull requests (#4002)

* community issue - PR not passing since no access to secret: testmo istance

* removed secret check in favor of fork check

* removed testmo-report-preparation from cypress run selected restored
This commit is contained in:
wojteknowacki 2023-07-28 11:47:47 +02:00 committed by GitHub
parent 1bd4aeadf1
commit c91bf54116
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -172,6 +172,7 @@ jobs:
testmo-report-preparation: testmo-report-preparation:
needs: prepare-tests needs: prepare-tests
if: github.event.pull_request.head.repo.fork == false
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
outputs: outputs:
testmo-run-id: ${{ steps.run-tests.outputs.TESTMO_RUN_ID }} testmo-run-id: ${{ steps.run-tests.outputs.TESTMO_RUN_ID }}
@ -200,13 +201,7 @@ jobs:
cypress-run-selected: cypress-run-selected:
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
needs: needs: [prepare-tests, deploy, testmo-report-preparation]
[
prepare-tests,
deploy,
testmo-report-preparation,
testmo-report-preparation,
]
container: cypress/browsers:node18.12.0-chrome106-ff106 container: cypress/browsers:node18.12.0-chrome106-ff106
strategy: strategy:
fail-fast: false fail-fast: false
@ -269,6 +264,7 @@ jobs:
working-directory: .github/workflows working-directory: .github/workflows
run: npm ci run: npm ci
- name: Testmo threads submit - name: Testmo threads submit
if: github.event.pull_request.head.repo.fork == false
working-directory: .github/workflows working-directory: .github/workflows
run: | run: |
npx testmo automation:run:submit-thread \ npx testmo automation:run:submit-thread \
@ -281,7 +277,8 @@ jobs:
TESTMO_RUN_ID: ${{ needs.testmo-report-preparation.outputs.testmo-run-id }} TESTMO_RUN_ID: ${{ needs.testmo-report-preparation.outputs.testmo-run-id }}
test-complete: test-complete:
needs: [testmo-report-preparation, cypress-run-selected] needs: [testmo-report-preparation, cypress-run-selected]
if: always() if: |
always() && !contains(needs.*.result, 'skipped') && !contains(needs.*.result, 'cancelled') && github.event.pull_request.head.repo.fork == false
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3