Skip to content

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

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 #24

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
with:
# https://github.com/swiftlang/swift-syntax/issues/2992
enable_windows_checks: false
soundness:
name: Soundness
uses: swiftlang/github-workflows/.github/workflows/soundness.yml@main
with:
# https://github.com/swiftlang/swift-syntax/issues/2986
api_breakage_check_enabled: false
# https://github.com/swiftlang/swift-syntax/issues/2987
docs_check_enabled: false
# https://github.com/swiftlang/swift-syntax/issues/2988
format_check_enabled: false
# https://github.com/swiftlang/swift-syntax/issues/2990
unacceptable_language_check_enabled: false
# https://github.com/swiftlang/swift-syntax/issues/2991
yamllint_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"