[DO NOT MERGE] Test API breakage baseline #62
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Pull request | |
on: | |
pull_request: | |
types: [opened, reopened, synchronize] | |
jobs: | |
tests: | |
name: Test | |
uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@main | |
soundness: | |
name: Soundness | |
uses: ahoppen/github-workflows/.github/workflows/soundness.yml@api-breakage-baseline | |
with: | |
api_breakage_check_allowlist_path: "api-breakages.txt" | |
api_breakage_check_baseline: "600.0.1" | |
docs_check_additional_arguments: "--disable-parameters-and-returns-validation" | |
verify_source_code: | |
name: Validate generated code | |
runs-on: ubuntu-latest | |
container: | |
image: swift:latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- name: Validate generated code | |
run: "./swift-syntax-dev-utils verify-source-code --toolchain /usr" | |
test_using_swift_syntax_dev_utils_linux: | |
name: Run tests using swift-syntax-dev-utils (Linux) | |
runs-on: ubuntu-latest | |
container: | |
image: swift:latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- name: Test | |
run: "./swift-syntax-dev-utils test --enable-rawsyntax-validation --enable-test-fuzzing --toolchain /usr" | |
test_using_swift_syntax_dev_utils_windows: | |
name: Run tests using swift-syntax-dev-utils (Windows) | |
runs-on: windows-2022 | |
steps: | |
- name: Pull Docker image | |
id: pull_docker_image | |
run: | | |
$Image = "swift:windowsservercore-ltsc2022" | |
docker pull $Image | |
echo "image=$Image" >> "$env:GITHUB_OUTPUT" | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- name: Test | |
run: | | |
mkdir $env:TEMP\test-script | |
echo @' | |
Set-PSDebug -Trace 1 | |
$SwiftPath = where.exe swift | |
swift.exe run --package-path "C:\Source\SwiftSyntaxDevUtils" swift-syntax-dev-utils test --enable-rawsyntax-validation --enable-test-fuzzing --toolchain "$SwiftPath\..\.." | |
if ($LastExitCode -ne 0) { | |
exit $LastExitCode | |
} | |
'@ >> $env:TEMP\test-script\run.ps1 | |
docker run -v ${{ github.workspace }}:C:\source -v $env:TEMP\test-script:C:\test-script ${{ steps.pull_docker_image.outputs.image }} powershell.exe -NoLogo -File C:\test-script\run.ps1 |