Skip to content

Commit

Permalink
Create providers.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
btoms20 authored Feb 8, 2024
1 parent 7d29a62 commit 079d57c
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/providers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
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-cid
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 079d57c

Please sign in to comment.