pull_request_test_jobs.yml (2094B)
1 name: test-jobs 2 on: 3 pull_request: 4 5 jobs: 6 decision: 7 name: ./wpt test-jobs 8 runs-on: ubuntu-24.04 9 outputs: 10 test_jobs: ${{ steps.test_jobs.outputs.test_jobs }} 11 steps: 12 - name: checkout 13 uses: actions/checkout@v4.1.0 14 with: 15 fetch-depth: 2 16 - name: ./wpt test-jobs 17 id: test_jobs 18 run: | 19 set -eux 20 echo "test_jobs=$( ./wpt test-jobs --json HEAD^1..HEAD )" >> $GITHUB_OUTPUT 21 22 affected_safari_preview: 23 name: "affected tests: Safari Technology Preview" 24 needs: decision 25 if: contains(fromJSON(needs.decision.outputs.test_jobs), 'affected_tests') 26 uses: ./.github/workflows/safari-wptrunner.yml 27 with: 28 artifact-name: safari-preview-affected-tests-with-changes 29 merged-artifact-name: safari-preview-affected-tests 30 safari-technology-preview: true 31 safaridriver-diagnose: false 32 fetch-depth: 2 33 extra-options: --affected ${{ github.sha }}^1 --no-fail-on-unexpected 34 35 affected_without_changes_safari_preview: 36 name: "affected tests without changes: Safari Technology Preview" 37 needs: decision 38 if: contains(fromJSON(needs.decision.outputs.test_jobs), 'affected_tests') 39 uses: ./.github/workflows/safari-wptrunner.yml 40 with: 41 artifact-name: safari-preview-affected-tests-without-changes 42 merged-artifact-name: safari-preview-affected-tests-without-changes 43 safari-technology-preview: true 44 safaridriver-diagnose: false 45 fetch-depth: 2 46 test-rev: HEAD^1 47 extra-options: --affected ${{ github.sha }} --no-fail-on-unexpected 48 49 infrastructure_mac: 50 name: "infrastructure/ tests: macOS" 51 needs: decision 52 if: contains(fromJSON(needs.decision.outputs.test_jobs), 'wptrunner_infrastructure') 53 uses: ./.github/workflows/safari-wptrunner.yml 54 with: 55 artifact-name: safari-infrastructure-results 56 safari-technology-preview: true 57 safaridriver-diagnose: false 58 extra-options: >- 59 --manifest MANIFEST.json 60 --metadata infrastructure/metadata/ 61 --include infrastructure/