Skip to content

Commit 7d26fe7

Browse files
committed
add GH action to compile examples on PR
1 parent 83ed705 commit 7d26fe7

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

.github/workflows/pull_request.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,14 @@ jobs:
2424
linux_nightly_6_0_arguments_override: "--explicit-target-dependency-import-check error"
2525
linux_nightly_main_arguments_override: "--explicit-target-dependency-import-check error"
2626

27+
integration-tests:
28+
name: Integration Tests
29+
# Workaround https://github.com/nektos/act/issues/1875
30+
uses: apple/swift-nio/.github/workflows/swift_matrix.yml@main
31+
with:
32+
name: "Integration tests"
33+
matrix_linux_command: "./scripts/integration_tests.sh"
34+
2735
swift-6-language-mode:
2836
name: Swift 6 Language Mode
2937
uses: apple/swift-nio/.github/workflows/swift_6_language_mode.yml@main

scripts/integration_tests.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/bash
2+
##===----------------------------------------------------------------------===##
3+
##
4+
## This source file is part of the SwiftAWSLambdaRuntime open source project
5+
##
6+
## Copyright (c) 2017-2018 Apple Inc. and the SwiftAWSLambdaRuntime project authors
7+
## Licensed under Apache License v2.0
8+
##
9+
## See LICENSE.txt for license information
10+
## See CONTRIBUTORS.txt for the list of SwiftAWSLambdaRuntime project authors
11+
##
12+
## SPDX-License-Identifier: Apache-2.0
13+
##
14+
##===----------------------------------------------------------------------===##
15+
16+
set +ex
17+
18+
LAMBDA_USE_LOCAL_DEPS=true swift build --package-path Examples/APIGateway
19+
LAMBDA_USE_LOCAL_DEPS=true swift build --package-path Examples/AWSSDK
20+
LAMBDA_USE_LOCAL_DEPS=true swift build --package-path Examples/HelloWorld
21+
LAMBDA_USE_LOCAL_DEPS=true swift build --package-path Examples/Soto

0 commit comments

Comments
 (0)