Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
build-and-test:
name: Build & Test (features=${{ matrix.features }})
runs-on: ubuntu-latest
env:
CONFIG_FIXTURES_TOKEN: ${{ secrets.CONFIG_FIXTURES_TOKEN }}
strategy:
fail-fast: false
matrix:
Expand All @@ -24,6 +26,28 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Checkout shared pipe fixtures repo
if: ${{ env.CONFIG_FIXTURES_TOKEN != '' }}
uses: actions/checkout@v4
with:
repository: trydirect/config
ref: main
token: ${{ env.CONFIG_FIXTURES_TOKEN }}
path: config-fixtures-repo
fetch-depth: 1
persist-credentials: false
sparse-checkout: |
shared-fixtures
- name: Shared pipe fixtures unavailable
if: ${{ env.CONFIG_FIXTURES_TOKEN == '' }}
run: |
echo "::notice::CONFIG_FIXTURES_TOKEN is unavailable for this workflow run; shared-fixture tests will be skipped."
- name: Link shared pipe fixtures
if: ${{ env.CONFIG_FIXTURES_TOKEN != '' }}
run: |
rm -rf "${GITHUB_WORKSPACE}/../config" "${GITHUB_WORKSPACE}/../shared-fixtures"
ln -sfn "${GITHUB_WORKSPACE}/config-fixtures-repo/shared-fixtures" "${GITHUB_WORKSPACE}/../shared-fixtures"
test -d "${GITHUB_WORKSPACE}/../shared-fixtures/pipe-contract"

- name: Setup Rust toolchain (${{ matrix.rust }})
uses: dtolnay/rust-toolchain@stable
Expand Down
Loading
Loading