Skip to content

Commit 70027d3

Browse files
authored
Update providers.yml
1 parent 885e759 commit 70027d3

File tree

1 file changed

+5
-33
lines changed

1 file changed

+5
-33
lines changed

.github/workflows/providers.yml

Lines changed: 5 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -2,39 +2,11 @@ name: Test Dependency Graph
22

33
on:
44
pull_request:
5-
types: [labeled]
5+
types: [labeled, synchronize]
66

77
jobs:
88
test-dependants:
9-
if: contains(github.event.pull_request.labels.*.name, 'approved')
10-
strategy:
11-
fail-fast: false
12-
matrix:
13-
provider:
14-
- swift-libp2p/swift-peer-id
15-
- swift-libp2p/swift-libp2p-core
16-
- swift-libp2p/swift-libp2p
17-
os: [ubuntu-latest, macos-latest]
18-
swift-version: ['5.9']
19-
runs-on: ${{ matrix.os }}
20-
steps:
21-
- name: Setup swift
22-
uses: swift-actions/setup-swift@v1
23-
with:
24-
swift-version: '${{ matrix.swift-version }}'
25-
- name: Check out ${{ github.event.repository.name }}
26-
uses: actions/checkout@v4
27-
with:
28-
path: ${{ github.event.repository.name }}
29-
- name: Check out provider
30-
uses: actions/checkout@v4
31-
with:
32-
repository: ${{ matrix.provider }}
33-
path: provider
34-
ref: ${{ matrix.ref }}
35-
- name: Use local ${{ github.event.repository.name }}
36-
run: swift package --package-path ./provider edit ${{ github.event.repository.name }} --path ./${{ github.event.repository.name }}
37-
- name: Run tests
38-
env:
39-
SWIFT_DETERMINISTIC_HASHING: 1
40-
run: swift test --package-path ./provider
9+
name: Tests
10+
uses: swift-libp2p/github-workflows/.github/workflows/providers.yml@main
11+
with:
12+
dependents: "[\"swift-libp2p/swift-peer-id\",\"swift-libp2p/swift-libp2p-core\",\"swift-libp2p/swift-libp2p\"]"

0 commit comments

Comments
 (0)