test_native.yaml checks out code for the PR. (#5720)

This commit is contained in:
Eric Severance 2025-01-01 20:41:13 -08:00 committed by GitHub
parent 88d8ab53c8
commit 7a1c32b89a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -16,6 +16,8 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
submodules: recursive
- name: Setup native build
@ -67,6 +69,8 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
submodules: recursive
- name: Setup native build
@ -115,23 +119,26 @@ jobs:
if: always()
steps:
- uses: actions/checkout@v4
with:
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
- name: Get release version string
run: echo "version=$(./bin/buildinfo.py long)" >> $GITHUB_OUTPUT
id: version
# - name: Download test artifacts
# uses: actions/download-artifact@v4
# with:
# name: platformio-test-report-${{ steps.version.outputs.version }}.zip
# merge-multiple: true
- name: Download test artifacts
uses: actions/download-artifact@v4
with:
name: platformio-test-report-${{ steps.version.outputs.version }}.zip
merge-multiple: true
# - name: Test Report
# uses: dorny/test-reporter@v1.9.1
# with:
# name: PlatformIO Tests
# path: testreport.xml
# reporter: java-junit
- name: Test Report
uses: dorny/test-reporter@v1.9.1
with:
name: PlatformIO Tests
path: testreport.xml
reporter: java-junit
# - name: Download coverage artifacts
# uses: actions/download-artifact@v4