-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into ff-platform-dance
- Loading branch information
Showing
27 changed files
with
700 additions
and
229 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
name: ExamplesMatrix | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
name: | ||
type: string | ||
description: "The name of the workflow used for the concurrency group." | ||
required: true | ||
# examples: | ||
# type: sequence | ||
# description: "The examples to run." | ||
# required: true | ||
matrix_linux_command: | ||
type: string | ||
description: "The command of the current Swift version linux matrix job to execute." | ||
required: true | ||
matrix_linux_swift_container_image: | ||
type: string | ||
description: "Container image for the matrix job. Defaults to matching latest Swift Ubuntu image." | ||
default: "swift:amazonlinux2" | ||
|
||
## We are cancelling previously triggered workflow runs | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }}-${{ inputs.name }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
linux: | ||
name: Example/${{ matrix.examples }} on Linux ${{ matrix.swift.swift_version }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
# This should be passed as an argument in input. Can we pass arrays as argument ? | ||
examples: ["HelloWorld", "APIGateway", "S3_AWSSDK", "S3_Soto"] | ||
# examples: ${{ inputs.examples }} | ||
|
||
# We are using only one Swift version | ||
swift: | ||
- image: ${{ inputs.matrix_linux_swift_container_image }} | ||
swift_version: "6.0.1-amazonlinux2" | ||
container: | ||
image: ${{ matrix.swift.image }} | ||
steps: | ||
# GitHub checkout action has a dep on NodeJS 20 which is not running on Amazonlinux2 | ||
# workaround is to manually checkout the repository | ||
# https://github.com/actions/checkout/issues/1487 | ||
- name: Manually Clone repository and checkout PR | ||
env: | ||
PR_NUMBER: ${{ github.event.pull_request.number }} | ||
run: | | ||
# Clone the repository | ||
git clone https://github.com/${{ github.repository }} | ||
cd ${{ github.event.repository.name }} | ||
# Fetch the pull request | ||
git fetch origin +refs/pull/$PR_NUMBER/merge: | ||
# Checkout the pull request | ||
git checkout -qf FETCH_HEAD | ||
# - name: Checkout repository | ||
# uses: actions/checkout@v4 | ||
# with: | ||
# persist-credentials: false | ||
|
||
- name: Mark the workspace as safe | ||
working-directory: ${{ github.event.repository.name }} # until we can use action/checkout@v4 | ||
# https://github.com/actions/checkout/issues/766 | ||
run: git config --global --add safe.directory ${GITHUB_WORKSPACE} | ||
|
||
- name: Run matrix job | ||
working-directory: ${{ github.event.repository.name }} # until we can use action/checkout@v4 | ||
env: | ||
SWIFT_VERSION: ${{ matrix.swift.swift_version }} | ||
COMMAND: ${{ inputs.matrix_linux_command }} | ||
EXAMPLE: ${{ matrix.examples }} | ||
run: | | ||
./scripts/integration_tests.sh |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,39 @@ | ||
name: PR | ||
|
||
on: | ||
pull_request: | ||
types: [opened, reopened, synchronize] | ||
pull_request: | ||
types: [opened, reopened, synchronize] | ||
|
||
jobs: | ||
soundness: | ||
name: Soundness | ||
uses: apple/swift-nio/.github/workflows/soundness.yml@main | ||
with: | ||
license_header_check_project_name: "SwiftAWSLambdaRuntime" | ||
shell_check_enabled: false | ||
api_breakage_check_container_image: "swift:6.0-noble" | ||
docs_check_container_image: "swift:6.0-noble" | ||
soundness: | ||
name: Soundness | ||
uses: swiftlang/github-workflows/.github/workflows/soundness.yml@main | ||
with: | ||
license_header_check_project_name: "SwiftAWSLambdaRuntime" | ||
shell_check_enabled: false | ||
api_breakage_check_container_image: "swift:6.0-noble" | ||
docs_check_container_image: "swift:6.0-noble" | ||
format_check_container_image: "swiftlang/swift:nightly-6.0-jammy" | ||
|
||
unit-tests: | ||
name: Unit tests | ||
uses: apple/swift-nio/.github/workflows/unit_tests.yml@main | ||
with: | ||
linux_5_8_enabled: false | ||
linux_5_9_enabled: false | ||
linux_5_10_enabled: false | ||
linux_nightly_6_0_arguments_override: "--explicit-target-dependency-import-check error" | ||
linux_nightly_main_arguments_override: "--explicit-target-dependency-import-check error" | ||
unit-tests: | ||
name: Unit tests | ||
uses: apple/swift-nio/.github/workflows/unit_tests.yml@main | ||
with: | ||
linux_5_8_enabled: false | ||
linux_5_9_enabled: false | ||
linux_5_10_enabled: false | ||
linux_nightly_6_0_arguments_override: "--explicit-target-dependency-import-check error" | ||
linux_nightly_main_arguments_override: "--explicit-target-dependency-import-check error" | ||
|
||
swift-6-language-mode: | ||
name: Swift 6 Language Mode | ||
uses: apple/swift-nio/.github/workflows/swift_6_language_mode.yml@main | ||
integration-tests: | ||
name: Integration Tests | ||
uses: ./.github/workflows/examples_matrix.yml | ||
with: | ||
# We should pass the list of examples here, but we can't pass an array as argument | ||
# examples: [ "HelloWorld", "APIGateway" ] | ||
name: "Integration tests" | ||
matrix_linux_command: "LAMBDA_USE_LOCAL_DEPS=../.. swift build" | ||
|
||
swift-6-language-mode: | ||
name: Swift 6 Language Mode | ||
uses: apple/swift-nio/.github/workflows/swift_6_language_mode.yml@main |
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
.DS_Store | ||
.aws-sam/ | ||
.build | ||
samtemplate.toml | ||
*/build/* | ||
/.build | ||
/Packages | ||
xcuserdata/ | ||
DerivedData/ | ||
.swiftpm/configuration/registries.json | ||
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata | ||
.netrc |
Oops, something went wrong.