Skip to content

Add GitHub Action to check that the generated source code is up to date #43

Add GitHub Action to check that the generated source code is up to date

Add GitHub Action to check that the generated source code is up to date #43

Workflow file for this run

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: swiftlang/github-workflows/.github/workflows/soundness.yml@main
with:
api_breakage_check_allowlist_path: "Release Notes/api-breakages.txt"
# https://github.com/swiftlang/swift-syntax/issues/2987
docs_check_enabled: false
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"