Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
btoms20 committed Feb 9, 2024
2 parents 8c80d27 + 0c3d103 commit 25e038c
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/providers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Test Dependency Graph

on:
pull_request:
types: [labeled]

jobs:
test-dependants:
if: contains(github.event.pull_request.labels.*.name, 'approved')
strategy:
fail-fast: false
matrix:
provider:
- swift-libp2p/swift-multihash
- swift-libp2p/swift-cid
- swift-libp2p/swift-multiaddr
os: [ubuntu-latest, macos-latest]
swift-version: ['5.9']
runs-on: ${{ matrix.os }}
steps:
- name: Setup swift
uses: swift-actions/setup-swift@v1
with:
swift-version: '${{ matrix.swift-version }}'
- name: Check out ${{ github.event.repository.name }}
uses: actions/checkout@v4
with:
path: ${{ github.event.repository.name }}
- name: Check out provider
uses: actions/checkout@v4
with:
repository: ${{ matrix.provider }}
path: provider
ref: ${{ matrix.ref }}
- name: Use local ${{ github.event.repository.name }}
run: swift package --package-path ./provider edit ${{ github.event.repository.name }} --path ./${{ github.event.repository.name }}
- name: Run tests
env:
SWIFT_DETERMINISTIC_HASHING: 1
run: swift test --package-path ./provider

0 comments on commit 25e038c

Please sign in to comment.