Skip to content

Commit 3cc44f0

Browse files
authored
Merge pull request #74 from award999/test-build
Setup a simple test build to verify
2 parents e72b2b7 + b077221 commit 3cc44f0

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/pull_request.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,38 @@ on:
55
types: [opened, reopened, synchronize]
66

77
jobs:
8+
tests_with_docker:
9+
name: Test with Docker
10+
uses: ./.github/workflows/swift_package_test.yml
11+
with:
12+
# Linux
13+
linux_build_command: |
14+
mkdir MyPackage
15+
cd MyPackage
16+
swift package init --type library
17+
swift build
18+
# Windows
19+
windows_build_command: |
20+
mkdir MyPackage
21+
cd MyPackage
22+
swift package init --type library
23+
swift build
24+
enable_windows_docker: true
25+
26+
tests_without_docker:
27+
name: Test without Docker
28+
uses: ./.github/workflows/swift_package_test.yml
29+
with:
30+
# Skip Linux which doesn't currently support docker-less workflow
31+
enable_linux_checks: false
32+
# Windows
33+
windows_build_command: |
34+
mkdir MyPackage
35+
cd MyPackage
36+
swift package init --type library
37+
swift build
38+
enable_windows_docker: false
39+
840
soundness:
941
name: Soundness
1042
uses: ./.github/workflows/soundness.yml

0 commit comments

Comments
 (0)