Skip to content

Commit

Permalink
chore: try joining list
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain committed Oct 26, 2023
1 parent c43e9de commit 6cf2bc1
Showing 1 changed file with 29 additions and 17 deletions.
46 changes: 29 additions & 17 deletions .github/workflows/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,39 @@ on:

jobs:

test-examples:
name: Test example ${{ matrix.example.name }}
build:
name: Build
runs-on: ubuntu-latest
continue-on-error: true
strategy:
matrix:
example:
- name: js-libp2p-example-chat
repo: https://github.com/libp2p/js-libp2p-example-chat.git
deps: |
@libp2p/peer-id-factory@/home/runner/work/js-libp2p/js-libp2p/packages/peer-id-factory,
@libp2p/tcp@/home/runner/work/js-libp2p/js-libp2p/packages/transport-tcp,
@libp2p/websockets@/home/runner/work/js-libp2p/js-libp2p/packages/transport-websockets,
libp2p@/home/runner/work/js-libp2p/js-libp2p/packages/libp2p
- name: js-libp2p-example-circuit-relay
repo: https://github.com/libp2p/js-libp2p-example-circuit-relay.git
deps: libp2p@$PWD/packages/libp2p,@libp2p/websockets@$PWD/packages/transport-websockets
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: lts/*
- uses: ipfs/aegir/actions/cache-node-modules@master
- run: npx xvfb-maybe npm run test:external -- ${{ matrix.example.repo }} --deps '${{ matrix.example.deps }}'

test-examples:
name: Test example ${{ matrix.example.name }}
runs-on: ubuntu-latest
continue-on-error: true
strategy:
matrix:
example:
- name: js-libp2p-example-chat
repo: https://github.com/libp2p/js-libp2p-example-chat.git
deps:
- '@libp2p/peer-id-factory@/home/runner/work/js-libp2p/js-libp2p/packages/peer-id-factory'
- '@libp2p/tcp@/home/runner/work/js-libp2p/js-libp2p/packages/transport-tcp'
- '@libp2p/websockets@/home/runner/work/js-libp2p/js-libp2p/packages/transport-websockets'
- 'libp2p@/home/runner/work/js-libp2p/js-libp2p/packages/libp2p'
- name: js-libp2p-example-circuit-relay
repo: https://github.com/libp2p/js-libp2p-example-circuit-relay.git
deps:
- '@libp2p/websockets@$PWD/packages/transport-websockets'
- 'libp2p@$PWD/packages/libp2p'
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: lts/*
- uses: ipfs/aegir/actions/cache-node-modules@master
- run: npx xvfb-maybe npm run test:external -- ${{ matrix.example.repo }} --deps '${{ join(matrix.example.deps, ',') }}'

0 comments on commit 6cf2bc1

Please sign in to comment.