Skip to content

Commit 6e50ebe

Browse files
committed
Add daily scheduled test job to release workflow
1 parent 7f511af commit 6e50ebe

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
name: release
33

44
on:
5+
schedule:
6+
- cron: '0 4 * * *'
57
push:
68
branches:
79
- '**'
@@ -15,6 +17,25 @@ concurrency:
1517

1618
jobs:
1719
test:
20+
if: github.event_name != 'schedule'
21+
runs-on: [self-hosted, macOS]
22+
steps:
23+
- uses: actions/checkout@v6
24+
with:
25+
clean: true
26+
- name: Clear SwiftPM caches
27+
run: |
28+
rm -rf ~/.swiftpm
29+
rm -rf ~/Library/Caches/org.swift.swiftpm
30+
rm -rf ~/Library/org.swift.swiftpm
31+
rm -rf .swiftpm
32+
rm -rf .build
33+
34+
- name: Run Tests
35+
run: swift test -v
36+
37+
daily_test:
38+
if: github.event_name == 'schedule'
1839
runs-on: [self-hosted, macOS]
1940
steps:
2041
- uses: actions/checkout@v6

0 commit comments

Comments
 (0)