Skip to content

Commit 62533db

Browse files
committed
wip: add scheduled job
1 parent 4aac0c4 commit 62533db

File tree

1 file changed

+63
-0
lines changed

1 file changed

+63
-0
lines changed

.github/workflows/main.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: main
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
schedule:
8+
- cron: '15 10 * * *'
9+
10+
jobs:
11+
soundness:
12+
name: Soundness
13+
uses: swiftlang/github-workflows/.github/workflows/soundness.yml@main
14+
with:
15+
api_breakage_check_container_image: "swift:6.0-noble"
16+
docs_check_container_image: "swift:6.0-noble"
17+
license_header_check_project_name: "SwiftContainerPlugin"
18+
shell_check_container_image: "swift:6.0-noble"
19+
20+
unit-tests:
21+
name: Unit tests
22+
uses: apple/swift-nio/.github/workflows/unit_tests.yml@main
23+
with:
24+
linux_5_9_enabled: false
25+
linux_5_10_enabled: false
26+
linux_6_0_arguments_override: "--skip SmokeTests"
27+
linux_nightly_6_0_arguments_override: "--skip SmokeTests"
28+
linux_nightly_main_arguments_override: "--skip SmokeTests"
29+
30+
integration-tests:
31+
name: Integration tests
32+
runs-on: ubuntu-latest
33+
services:
34+
registry:
35+
image: registry:2
36+
ports:
37+
- 5000:5000
38+
container:
39+
image: swift:6.0-noble
40+
steps:
41+
- name: Checkout repository
42+
uses: actions/checkout@v4
43+
with:
44+
persist-credentials: false
45+
46+
- name: Mark the workspace as safe
47+
# https://github.com/actions/checkout/issues/766
48+
run: git config --global --add safe.directory ${GITHUB_WORKSPACE}
49+
50+
- name: Run test job
51+
env:
52+
REGISTRY_HOST: registry
53+
REGISTRY_PORT: 5000
54+
run: |
55+
swift test
56+
57+
endtoend-tests:
58+
name: End to end tests
59+
uses: ./.github/workflows/endtoend_tests.yml
60+
61+
swift-6-language-mode:
62+
name: Swift 6 Language Mode
63+
uses: apple/swift-nio/.github/workflows/swift_6_language_mode.yml@main

0 commit comments

Comments
 (0)