Skip to content

Commit 4cc7869

Browse files
committed
tests: Add scheduled test run
Fixes #40
1 parent 832153d commit 4cc7869

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

.github/workflows/main.yml

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

0 commit comments

Comments
 (0)