|
| 1 | +# This workflow will build a Swift project on macOS and Linux |
| 2 | +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift |
| 3 | +name: swift-openapi-lambda-build |
| 4 | + |
| 5 | +on: |
| 6 | + push: |
| 7 | + branches: ["main"] |
| 8 | + pull_request: |
| 9 | + types: [opened, reopened, synchronize] |
| 10 | + |
| 11 | +jobs: |
| 12 | + soundness: |
| 13 | + name: Soundness |
| 14 | + uses: swiftlang/github-workflows/.github/workflows/soundness.yml@main |
| 15 | + with: |
| 16 | + # do not use SwiftLang's license header check because the copyright for this project is Amazon.com + contributors |
| 17 | + license_header_check_enabled: false |
| 18 | + license_header_check_project_name: "Swift OpenAPI Lambda" |
| 19 | + shell_check_enabled: false |
| 20 | + python_lint_check_enabled: false |
| 21 | + api_breakage_check_container_image: "swift:6.0-noble" |
| 22 | + docs_check_container_image: "swift:6.0-noble" |
| 23 | + format_check_container_image: "swiftlang/swift:nightly-6.0-jammy" |
| 24 | + |
| 25 | + license: |
| 26 | + name: License headers check |
| 27 | + runs-on: ubuntu-latest |
| 28 | + strategy: |
| 29 | + fail-fast: false |
| 30 | + steps: |
| 31 | + - name: Checkout repository |
| 32 | + uses: actions/checkout@v4 |
| 33 | + with: |
| 34 | + persist-credentials: false |
| 35 | + - name: Mark the workspace as safe |
| 36 | + # https://github.com/actions/checkout/issues/766 |
| 37 | + run: git config --global --add safe.directory ${GITHUB_WORKSPACE} |
| 38 | + - name: License headers check |
| 39 | + env: |
| 40 | + PROJECT_NAME: "Swift OpenAPI Lambda" |
| 41 | + run: | |
| 42 | + ./scripts/check-license-headers.sh |
| 43 | +
|
| 44 | + unit-tests: |
| 45 | + name: Unit tests |
| 46 | + uses: apple/swift-nio/.github/workflows/unit_tests.yml@main |
| 47 | + with: |
| 48 | + linux_5_9_enabled: false |
| 49 | + linux_5_10_enabled: true |
| 50 | + linux_nightly_6_0_arguments_override: "--explicit-target-dependency-import-check error" |
| 51 | + linux_nightly_main_arguments_override: "--explicit-target-dependency-import-check error" |
| 52 | + |
| 53 | + swift-6-language-mode: |
| 54 | + name: Swift 6 Language Mode |
| 55 | + uses: apple/swift-nio/.github/workflows/swift_6_language_mode.yml@main |
0 commit comments