Skip to content

Commit

Permalink
Create downstream.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
btoms20 authored Feb 8, 2024
1 parent 764a28e commit 31e824f
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/downstream.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Test Dependency Graph

on:
workflow_dispatch:
inputs:
os:
type: choice
description: OS
options:
- ubuntu-latest
- macos-latest
- windows-latest
swift-version:
type: choice
description: Swift Version
options:
- '5.9'
- '5.8'
- '5.7'
- '5.6'
- '5.5'
- '5.4'
- '5.3'
- '5.2'
- '5.1'
- '5.0'

jobs:
test-dependants:
strategy:
fail-fast: false
matrix:
provider:
- swift-libp2p/swift-cid
os: [ ${{ github.event.inputs.os }} ]
swift: [ '${{ github.event.inputs.swift-version }}' ]
runs-on: ${{ matrix.os }}
steps:
- name: Check out swift-multihash
uses: actions/checkout@v4
with:
path: swift-multihash
- name: Check out provider
uses: actions/checkout@v4
with:
repository: ${{ matrix.provider }}
path: provider
ref: ${{ matrix.ref }}
- name: Use local swift-multihash
run: swift package --package-path ./provider edit swift-multihash --path ./swift-multihash
- name: Run tests
env:
SWIFT_DETERMINISTIC_HASHING: 1
run: swift test --package-path ./provider

0 comments on commit 31e824f

Please sign in to comment.