Skip to content

Commit 885e759

Browse files
authored
Update build+test.yml
1 parent ea62c78 commit 885e759

File tree

1 file changed

+7
-31
lines changed

1 file changed

+7
-31
lines changed

.github/workflows/build+test.yml

Lines changed: 7 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,13 @@
11
name: Build & Test
22

33
on:
4-
push:
5-
paths-ignore:
6-
- 'README.md'
7-
branches: [ main ]
8-
pull_request:
9-
paths-ignore:
10-
- 'README.md'
11-
branches: [ main ]
4+
schedule:
5+
- cron: "49 4 * * 1"
126
workflow_dispatch:
137

148
jobs:
15-
test-matrix:
16-
if: ${{ !(github.event.pull_request.draft || false) }}
17-
strategy:
18-
fail-fast: false
19-
matrix:
20-
os: [ubuntu-latest, macos-latest]
21-
swift-version: ["6.0", "5.10", "5.9"]
22-
runs-on: ${{ matrix.os }}
23-
steps:
24-
- uses: actions/checkout@v4
25-
- uses: SwiftyLab/setup-swift@latest
26-
with:
27-
swift-version: ${{ matrix.swift-version }}
28-
- name: Get swift version
29-
run: swift --version
30-
- name: Build
31-
run: swift build -v
32-
- name: Test
33-
if: ${{ !(matrix.os == 'ubuntu-latest') }}
34-
run: swift test -v
35-
- name: Test Release
36-
if: ${{ matrix.os == 'ubuntu-latest' }}
37-
run: swift test -c release -Xswiftc -enable-testing
9+
tests:
10+
name: Tests
11+
uses: swift-libp2p/github-workflows/.github/workflows/build+test.yml@main
12+
with:
13+
test_in_release_configuration: true

0 commit comments

Comments
 (0)