Skip to content

Enable cross-PR testing #120

Enable cross-PR testing

Enable cross-PR testing #120

Workflow file for this run

name: Pull request
on:
pull_request:
types: [opened, reopened, synchronize]
jobs:
tests:
name: Test
uses: ahoppen/github-workflows/.github/workflows/swift_package_test.yml@windows-error-propagation
with:
linux_pre_build_command: |
pushd cross-pr-checkout/Sources/cross-pr-checkout
swift cross-pr-checkout.swift "${{ github.repository }}" "${{ github.event.number }}"
popd
windows_pre_build_command: |
mkdir $env:TEMP\cross-pr-checkout
cp cross-pr-checkout\Sources\cross-pr-checkout\main.swift $env:TEMP\cross-pr-checkout
pushd $env:TEMP\cross-pr-checkout
swiftc -sdk $env:SDKROOT main.swift
.\main.exe "${{ github.repository }}" "${{ github.event.number }}"
popd
# soundness:
# name: Soundness
# uses: swiftlang/github-workflows/.github/workflows/soundness.yml@main
# with:
# license_header_check_enabled: false
# license_header_check_project_name: "Swift.org"