From 63974c9eee9ca5f398f4337ce70b0c7fcf86c2c5 Mon Sep 17 00:00:00 2001 From: Alex Hoppen Date: Thu, 6 Mar 2025 23:06:45 -0800 Subject: [PATCH] Add GitHub Action to check that the generated source code is up to date --- .github/workflows/pull_request.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index b8978a87286..1b755b0b4ac 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -15,3 +15,15 @@ jobs: 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"