Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: libp2p/js-libp2p
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: b11c6fc7e93477f90667bf0734baec992d3d88c8
Choose a base ref
...
head repository: libp2p/js-libp2p
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: e82b6e414b8afd29eec5e24572be90b0dfe3629d
Choose a head ref

Commits on Sep 25, 2019

  1. chore: update required libp2p-crypto version (#457)

    So as to only pull in libp2p-crypto version with updated `node-forge` dep
    achingbrain authored and jacobheun committed Sep 25, 2019
    Copy the full SHA
    35aa45c View commit details

Commits on Oct 14, 2019

  1. fix: performance bottleneck in stat.js (#463)

    Array.shift seems to be very slow, perhaps linear, on some
    engines, resulting in  _update consuming a lot of CPU.
    betamos authored and jacobheun committed Oct 14, 2019
    Copy the full SHA
    93a1e42 View commit details

Commits on Oct 16, 2019

  1. docs(fix): correct docs and example for pnet (#464)

    * docs(fix): correct docs and example for pnet
    
    * docs(fix): correct pnet docs
    jacobheun authored Oct 16, 2019
    Copy the full SHA
    6a05f3e View commit details

Commits on Oct 24, 2019

  1. docs(fix): update README.md language (#468)

    Ryan Bell authored and jacobheun committed Oct 24, 2019
    Copy the full SHA
    0fc4537 View commit details

Commits on Nov 4, 2019

  1. docs: reciprocate (#474)

    daviddias authored and jacobheun committed Nov 4, 2019
    Copy the full SHA
    21cd9c6 View commit details

Commits on Nov 11, 2019

  1. docs(example): fix ipfs cat (#475)

    `ipfs.files.cat` is incorrect. the correct function is `ipfs.cat`
    phillmac authored and jacobheun committed Nov 11, 2019
    Copy the full SHA
    b733480 View commit details

Commits on Nov 26, 2019

  1. fix: examples readme typos (#481)

    dirkmc authored and jacobheun committed Nov 26, 2019
    Copy the full SHA
    35ac02d View commit details

Commits on Dec 11, 2019

  1. Copy the full SHA
    0826531 View commit details
  2. Copy the full SHA
    0173021 View commit details
  3. docs: fix gossipsub link

    daviddias committed Dec 11, 2019
    Copy the full SHA
    bc071ce View commit details
  4. docs: add missing ones

    daviddias committed Dec 11, 2019
    Copy the full SHA
    b277b26 View commit details

Commits on Jan 24, 2020

  1. Add streaming iterables guide (#459)

    * docs: add streaming iterables guide placeholder
    
    * chore: move peer discovery readme to doc fold:wqer
    
    * docs: add link to async refactor issue
    jacobheun committed Jan 24, 2020
    Copy the full SHA
    0cef51d View commit details
  2. refactor(async): update transports subsystem (#461)

    * test: remove all tests for a clean slate
    
    The refactor will require a large number of updates to the tests. In order
    to ensure we have done a decent deduplication, and have a cleaner suite of tests
    we've removed all tests. This will also allow us to more easily see tests
    for the refactored systems.
    
    We have a record of the latest test suites in master, so we are not losing any history.
    
    * chore: update tcp and websockets
    * chore: remove other transports until they are converted
    * chore: use mafmt and multiaddr async versions
    * chore: add and fix dependencies
    * chore: clean up travis file
    * feat: add new transport manager
    * docs: add constructor jsdocs
    * refactor(config): check that transports exist
    This also removes the other logic, it can be added when those subsystems are refactored
    
    * chore(deps): use async peer-id and peer-info
    * feat: wire up the transport manager with libp2p
    * chore: remove superstruct dep
    jacobheun committed Jan 24, 2020
    Copy the full SHA
    440fbf0 View commit details
  3. docs: add stream wrapping example (#466)

    * docs: add duplex wrapping example
    
    docs: add iterable types from @alanshaw's gist
    
    * docs(fix): add feedback fix
    
    Co-Authored-By: Vasco Santos <vasco.santos@moxy.studio>
    
    * docs: clean up based on feedback
    jacobheun committed Jan 24, 2020
    Copy the full SHA
    b37ccc7 View commit details
  4. refactor(async): add dialer and upgrader (#462)

    * chore(deps): update connection and multistream
    
    * feat: add basic dial support for addresses and peers
    
    * test: automatically require all node test files
    
    * fix: dont catch and log in the wrong place
    
    * test: add direct spec test
    
    fix: improve dial error consistency
    
    * feat: add dial timeouts and concurrency
    
    Queue timeouts will result in aborts of the dials
    
    * chore: fix linting
    
    * test: verify dialer defaults
    
    * feat: add initial upgrader
    
    * fix: add more test coverage and fix bugs
    
    * feat: libp2p creates the upgrader
    
    * feat: hook up handle to the upgrader
    
    * feat: hook up the dialer to libp2p
    
    test: add node dialer libp2p tests
    
    * feat: add connection listeners to upgrader
    
    * feat: emit connect and disconnect events
    
    * chore: use libp2p-interfaces
    
    * fix: address review feedback
    
    * fix: correct import
    
    * refactor: dedupe connection creation code
    jacobheun committed Jan 24, 2020
    Copy the full SHA
    5e1dbc2 View commit details
  5. refactor: crypto and pnet (#469)

    * feat: add initial plaintext 2 module
    
    * refactor: initial refactor of pnet
    
    * chore: fix lint
    
    * fix: update plaintext api usage
    
    * test: use plaintext for test crypto
    
    * chore: update deps
    
    test: update dialer suite scope
    
    * feat: add connection protection to the upgrader
    
    * refactor: cleanup and lint fix
    
    * chore: remove unncessary transforms
    
    * chore: temporarily disable bundlesize
    
    * chore: add missing dep
    
    * fix: use it-handshake to prevent overreading
    
    * chore(fix): PR feedback updates
    
    * chore: apply suggestions from code review
    
    Co-Authored-By: Vasco Santos <vasco.santos@moxy.studio>
    jacobheun and vasco-santos committed Jan 24, 2020
    Copy the full SHA
    fe2a8ed View commit details
  6. feat: peer store (#470)

    * feat: peer-store v0
    
    * chore: apply suggestions from code review
    
    Co-Authored-By: Jacob Heun <jacobheun@gmail.com>
    vasco-santos and jacobheun committed Jan 24, 2020
    Copy the full SHA
    582094a View commit details
  7. feat: registrar (#471)

    * feat: peer-store v0
    
    * feat: registrar
    
    * chore: apply suggestions from code review
    
    Co-Authored-By: Jacob Heun <jacobheun@gmail.com>
    
    * chore: address review
    
    * chore: support multiple conns
    
    * chore: address review
    
    * fix: no remote peer from topology on disconnect
    vasco-santos authored and jacobheun committed Jan 24, 2020
    Copy the full SHA
    9d52b80 View commit details
  8. refactor: async identify and identify push (#473)

    * chore: add missing dep
    
    * feat: import from identify push branch
    
    https://github.com/libp2p/js-libp2p-identify/tree/feat/identify-push
    
    * feat: add the connection to stream handlers
    
    * refactor: identify to async/await
    
    * chore: fix lint
    
    * test: add identify tests
    
    * refactor: add identify to the dialer flow
    
    * feat: connect identify to the registrar
    
    * fix: resolve review feedback
    
    * fix: perform identify push when our protocols change
    jacobheun committed Jan 24, 2020
    Copy the full SHA
    c7a54f3 View commit details
  9. chore: update it-length-prefixed (#476)

    fix: decode.fromReader usage
    jacobheun committed Jan 24, 2020
    Copy the full SHA
    2afdbb7 View commit details
  10. refactor: pubsub (#467)

    * feat: peer-store v0
    
    * chore: apply suggestions from code review
    
    Co-Authored-By: Jacob Heun <jacobheun@gmail.com>
    
    * chore: address review
    
    * refactor: pubsub subsystem
    
    * chore: address review
    
    * chore: use topology interface
    
    * chore: address review
    
    * chore: address review
    
    * chore: simplify tests
    vasco-santos authored and jacobheun committed Jan 24, 2020
    Copy the full SHA
    432b099 View commit details
  11. Copy the full SHA
    bcad609 View commit details
  12. refactor: core async (#478)

    * refactor: cleanup core
    
    test: auto dial on startup
    
    * fix: make hangup work properly
    
    * chore: fix lint
    
    * chore: apply suggestions from code review
    
    Co-Authored-By: Vasco Santos <vasco.santos@moxy.studio>
    jacobheun and vasco-santos committed Jan 24, 2020
    Copy the full SHA
    2104578 View commit details
  13. refactor: update secio and tests to use it (#484)

    * refactor: use async secio
    
    * test: add secio to most test suites
    
    * chore: update secio version
    jacobheun committed Jan 24, 2020
    Copy the full SHA
    f28b09f View commit details
  14. refactor: dht async/await (#480)

    * refactor: core async (#478)
    
    * refactor: cleanup core
    
    test: auto dial on startup
    
    * fix: make hangup work properly
    
    * chore: fix lint
    
    * chore: apply suggestions from code review
    
    Co-Authored-By: Vasco Santos <vasco.santos@moxy.studio>
    
    * fix: provide libp2p dialer to the dht
    
    * chore: use dht release
    vasco-santos authored and jacobheun committed Jan 24, 2020
    Copy the full SHA
    c563e06 View commit details
  15. refactor(docs): async await version of examples/echo (#483)

    * fix: performance bottleneck in stat.js (#463)
    
    Array.shift seems to be very slow, perhaps linear, on some
    engines, resulting in  _update consuming a lot of CPU.
    
    * docs(fix): correct docs and example for pnet (#464)
    
    * docs(fix): correct docs and example for pnet
    
    * docs(fix): correct pnet docs
    
    * docs(fix): update README.md language (#468)
    
    * docs: reciprocate (#474)
    
    * docs(example): fix ipfs cat (#475)
    
    `ipfs.files.cat` is incorrect. the correct function is `ipfs.cat`
    
    * fix: async await examples/echo
    
    * fix: examples readme typos (#481)
    
    * fix: simplify libp2p bundle for echo example
    dirkmc authored and jacobheun committed Jan 24, 2020
    Copy the full SHA
    953d185 View commit details
  16. refactor(docs): async await version of examples/chat (#482)

    * fix: performance bottleneck in stat.js (#463)
    
    Array.shift seems to be very slow, perhaps linear, on some
    engines, resulting in  _update consuming a lot of CPU.
    
    * docs(fix): correct docs and example for pnet (#464)
    
    * docs(fix): correct docs and example for pnet
    
    * docs(fix): correct pnet docs
    
    * docs(fix): update README.md language (#468)
    
    * docs: reciprocate (#474)
    
    * docs(example): fix ipfs cat (#475)
    
    `ipfs.files.cat` is incorrect. the correct function is `ipfs.cat`
    
    * fix: async-await example chat
    
    * fix: move handler before start
    
    * fix: examples readme typos (#481)
    
    * fix: simplify libp2p bundle for echo example
    
    * chore: remove unused vars
    dirkmc authored and jacobheun committed Jan 24, 2020
    Copy the full SHA
    472e14f View commit details
  17. fix: replace peerInfo addresses with listen addresses (#485)

    * feat: replace peer info addresses with listen addresses
    
    * test: add listening test
    
    * chore: fix linting
    dirkmc authored and jacobheun committed Jan 24, 2020
    Copy the full SHA
    1999606 View commit details
  18. feat: discovery modules (#486)

    * feat: discovery modules
    
    * chore: address review
    vasco-santos authored and jacobheun committed Jan 24, 2020
    Copy the full SHA
    18a062e View commit details
  19. refactor: circuit relay to async (#477)

    * refactor: add dialing over relay support
    
    * chore: fix lint
    
    * fix: dont clear listeners on close
    
    * fix: if dial errors already have codes, just rethrow them
    
    * fix: clear the registrar when libp2p stops
    
    * fix: improve connection maintenance with circuit
    
    * chore: correct feedback
    
    * test: use chai as promised
    
    * test(fix): reset multiaddrs on dial test
    jacobheun committed Jan 24, 2020
    Copy the full SHA
    f77ce39 View commit details
  20. refactor: async routing (#489)

    * feat: async routing
    
    * chore: put dht extra api commands under content routing
    
    * chore: add default option to createPeerInfo
    
    Co-Authored-By: Jacob Heun <jacobheun@gmail.com>
    
    * chore: address review
    
    * chore: rm dlv
    vasco-santos authored and jacobheun committed Jan 24, 2020
    Copy the full SHA
    a020db1 View commit details
  21. Copy the full SHA
    8da9fc9 View commit details
  22. Copy the full SHA
    9a6e07d View commit details
  23. fix: clean up peer discovery flow (#494)

    * fix: clean up peer discovery flow
    
    * test(fix): let libp2p start after connecting
    
    * test(fix): dont auto dial in disco tests
    jacobheun committed Jan 24, 2020
    Copy the full SHA
    12fc069 View commit details
  24. fix: correct release readme

    jacobheun committed Jan 24, 2020
    Copy the full SHA
    ce8e60b View commit details
  25. Copy the full SHA
    2329ef3 View commit details
  26. Copy the full SHA
    e445a17 View commit details
  27. Copy the full SHA
    76ec1cc View commit details
  28. chore: apply suggestions from code review

    Co-Authored-By: Vasco Santos <vasco.santos@moxy.studio>
    Co-Authored-By: Alan Shaw <alan.shaw@protocol.ai>
    3 people committed Jan 24, 2020
    Copy the full SHA
    2788982 View commit details
  29. Copy the full SHA
    7c2fefd View commit details
  30. Copy the full SHA
    b7432bd View commit details
  31. Copy the full SHA
    e1e3be8 View commit details
  32. Copy the full SHA
    a5b54a7 View commit details
  33. Copy the full SHA
    b6cd48b View commit details
  34. Copy the full SHA
    b86ef64 View commit details
  35. chore: fix linting

    jacobheun committed Jan 24, 2020
    Copy the full SHA
    7ac5e42 View commit details
  36. chore: update docs

    fix: protect against duplicate token releases
    jacobheun committed Jan 24, 2020
    Copy the full SHA
    6ad840c View commit details
  37. Copy the full SHA
    98e82df View commit details
  38. chore: update per feedback

    jacobheun committed Jan 24, 2020
    Copy the full SHA
    466b4df View commit details
  39. Copy the full SHA
    a12006a View commit details
Showing 422 changed files with 33,840 additions and 21,406 deletions.
160 changes: 47 additions & 113 deletions .aegir.js
Original file line number Diff line number Diff line change
@@ -1,136 +1,70 @@
'use strict'

const pull = require('pull-stream')
const WebSocketStarRendezvous = require('libp2p-websocket-star-rendezvous')
const sigServer = require('libp2p-webrtc-star/src/sig-server')
const promisify = require('promisify-es6')
const mplex = require('pull-mplex')
const spdy = require('libp2p-spdy')
const PeerBook = require('peer-book')
const PeerId = require('peer-id')
const PeerInfo = require('peer-info')
const path = require('path')
const Switch = require('./src/switch')
const Libp2p = require('./src')
const { MULTIADDRS_WEBSOCKETS } = require('./test/fixtures/browser')
const Peers = require('./test/fixtures/peers')
const PeerId = require('peer-id')
const WebSockets = require('libp2p-websockets')

const Node = require('./test/utils/bundle-nodejs.js')
const {
getPeerRelay,
WRTC_RENDEZVOUS_MULTIADDR,
WS_RENDEZVOUS_MULTIADDR
} = require('./test/utils/constants')

let wrtcRendezvous
let wsRendezvous
let node
let peerInfo
let switchA
let switchB

function echo (protocol, conn) { pull(conn, conn) }
function idJSON (id) {
const p = path.join(__dirname, `./test/switch/test-data/id-${id}.json`)
return require(p)
}

function createSwitchA () {
return new Promise((resolve, reject) => {
PeerId.createFromJSON(idJSON(1), (err, id) => {
if (err) { return reject(err) }

const peerA = new PeerInfo(id)
const maA = '/ip4/127.0.0.1/tcp/15337/ws'

peerA.multiaddrs.add(maA)
const sw = new Switch(peerA, new PeerBook())

sw.transport.add('ws', new WebSockets())
sw.start((err) => {
if (err) { return reject(err) }
resolve(sw)
})
})
})
}

function createSwitchB () {
return new Promise((resolve, reject) => {
PeerId.createFromJSON(idJSON(2), (err, id) => {
if (err) { return reject(err) }

const peerB = new PeerInfo(id)
const maB = '/ip4/127.0.0.1/tcp/15347/ws'

peerB.multiaddrs.add(maB)
const sw = new Switch(peerB, new PeerBook())

sw.transport.add('ws', new WebSockets())
sw.connection.addStreamMuxer(mplex)
sw.connection.addStreamMuxer(spdy)
sw.connection.reuse()
sw.handle('/echo/1.0.0', echo)
sw.start((err) => {
if (err) { return reject(err) }
resolve(sw)
})
})
})
}
const Muxer = require('libp2p-mplex')
const { NOISE: Crypto } = require('@chainsafe/libp2p-noise')
const pipe = require('it-pipe')
let libp2p

const before = async () => {
[
wrtcRendezvous,
wsRendezvous,
peerInfo,
switchA,
switchB
] = await Promise.all([
sigServer.start({
port: WRTC_RENDEZVOUS_MULTIADDR.nodeAddress().port
// cryptoChallenge: true TODO: needs https://github.com/libp2p/js-libp2p-webrtc-star/issues/128
}),
WebSocketStarRendezvous.start({
port: WS_RENDEZVOUS_MULTIADDR.nodeAddress().port,
refreshPeerListIntervalMS: 1000,
strictMultiaddr: false,
cryptoChallenge: true
}),
getPeerRelay(),
createSwitchA(),
createSwitchB()
])

node = new Node({
peerInfo,
// Use the last peer
const peerId = await PeerId.createFromJSON(Peers[Peers.length - 1])

libp2p = new Libp2p({
addresses: {
listen: [MULTIADDRS_WEBSOCKETS[0]]
},
peerId,
modules: {
transport: [WebSockets],
streamMuxer: [Muxer],
connEncryption: [Crypto]
},
config: {
relay: {
enabled: true,
hop: {
enabled: true,
active: true
active: false
}
},
nat: {
enabled: false
}
}
})
// Add the echo protocol
libp2p.handle('/echo/1.0.0', ({ stream }) => pipe(stream, stream))

await libp2p.start()
}

node.handle('/echo/1.0.0', (protocol, conn) => pull(conn, conn))
await node.start()
const after = async () => {
await libp2p.stop()
}

const after = () => {
return Promise.all([
wrtcRendezvous.stop(),
wsRendezvous.stop(),
node.stop(),
promisify(switchA.stop, { context: switchA })(),
promisify(switchB.stop, { context: switchB })()
])
/** @type {import('aegir').Options["build"]["config"]} */
const esbuild = {
inject: [path.join(__dirname, './scripts/node-globals.js')]
}

/** @type {import('aegir').PartialOptions} */
module.exports = {
bundlesize: { maxSize: '220kB' },
hooks: {
pre: before,
post: after
build: {
bundlesizeMax: '253kB'
},
test: {
before,
after,
browser: {
config: {
buildConfig: esbuild
}
}
}
}
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: libp2p Official Forum
url: https://discuss.libp2p.io
about: For general questions, support requests and discussions
55 changes: 55 additions & 0 deletions .github/ISSUE_TEMPLATE/open_an_issue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
---
name: Open an issue
about: For reporting bugs or errors in the JavaScript libp2p implementation
title: ''
labels: need/triage
assignees: ''
---

<!--
Thank you for reporting an issue.
This issue tracker is for bugs found within the JavaScript implementation of libp2p.
If you are asking a question about how to use libp2p, please ask on https://discuss.libp2p.io
Otherwise please fill in as much of the template below as possible.
-->

- **Version**:
<!--
Check package.json version
-->

- **Platform**:
<!--
Output of `uname -a` (UNIX), or version and 32 or 64-bit (Windows). If using in a Browser, please share the browser version as well
-->

- **Subsystem**:
<!--
If known, please specify affected core module name (e.g Dialer, Pubsub, Relay etc)
-->

#### Severity:
<!--
One of following:
Critical - System crash, application panic.
High - The main functionality of the application does not work, API breakage, repo format breakage, etc.
Medium - A non-essential functionality does not work, performance issues, etc.
Low - An optional functionality does not work.
Very Low - Translation or documentation mistake. Something that won't give anyone a bad day.
-->

#### Description:
<!--
- What you did
- What happened
- What you expected to happen
-->

#### Steps to reproduce the error:
<!--
If possible, please provide code that demonstrates the problem, keeping it as simple and free of external dependencies as you are able
-->

6 changes: 3 additions & 3 deletions RELEASE.md → .github/ISSUE_TEMPLATE/release.md
Original file line number Diff line number Diff line change
@@ -25,7 +25,7 @@
- [ ] [js-ipfs](https://github.com/ipfs/js-ipfs)
- Documentation
- [ ] Ensure that README.md is up to date
- [ ] Ensure that all the examples run
- [ ] Ensure that [libp2p/docs](https://github.com/libp2p/docs) is updated
- Communication
- [ ] Create the release issue
- [ ] Take a snapshot between of everyone that has contributed to this release (including its subdeps in IPFS, libp2p, IPLD and multiformats) using [`name-your-contributors`](https://www.npmjs.com/package/name-your-contributors). Generate a nice markdown list with [this script](https://gist.github.com/jacobheun/d2ff479ca991733c13cdcf688a1317e5)
@@ -50,8 +50,8 @@ Would you like to contribute to the libp2p project and don't know how? Well, the
- Check the issues with the `help wanted` label in the [libp2p repo](https://github.com/libp2p/js-libp2p/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22)
- Join an IPFS All Hands, introduce yourself and let us know where you would like to contribute - https://github.com/ipfs/team-mgmt#all-hands-call
- Hack with IPFS and show us what you made! The All Hands call is also the perfect venue for demos, join in and show us what you built
- Join the discussion at http://discuss.ipfs.io/ and help users finding their answers.
- Join the [⚡️ⒿⓈ Core Dev Team Weekly Sync 🙌🏽 ](https://github.com/ipfs/team-mgmt/issues/650) and be part of the Sprint action!
- Join the discussion at http://discuss.libp2p.io/ and help users finding their answers.
- Join the [⚡️libp2p Weekly Sync 🙌🏽](https://github.com/libp2p/team-mgmt/issues/16) and be part of the Sprint action!
# ⁉️ Do you have questions?
102 changes: 102 additions & 0 deletions .github/workflows/examples.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
name: examples
on:
push:
branches:
- master
pull_request:
branches:
- '**'

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: npm install
- run: npx aegir lint
- run: npx aegir ts -p check
- run: npx aegir build
test-auto-relay-example:
needs: check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: npm install
- run: cd examples && yarn && npm run test -- auto-relay
test-chat-example:
needs: check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: npm install
- run: cd examples && yarn && npm run test -- chat
test-connection-encryption-example:
needs: check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: npm install
- run: cd examples && yarn && npm run test -- connection-encryption
test-discovery-mechanisms-example:
needs: check
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- run: npm install
- run: cd examples && yarn && npm run test -- discovery-mechanisms
test-echo-example:
needs: check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: npm install
- run: cd examples && yarn && npm run test -- echo
test-libp2p-in-the-browser-example:
needs: check
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- run: npm install
- run: cd examples && yarn && npm run test -- libp2p-in-the-browser
test-peer-and-content-routing-example:
needs: check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: npm install
- run: cd examples && yarn && npm run test -- peer-and-content-routing
test-pnet-example:
needs: check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: npm install
- run: cd examples && yarn && npm run test -- pnet
test-protocol-and-stream-muxing-example:
needs: check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: npm install
- run: cd examples && yarn && npm run test -- protocol-and-stream-muxing
test-pubsub-example:
needs: check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: npm install
- run: cd examples && yarn && npm run test -- pubsub
test-transports-example:
needs: check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: npm install
- run: cd examples && yarn && npm run test -- transports
test-webrtc-direct-example:
needs: check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: npm install
- run: cd examples && yarn && npm run test -- webrtc-direct
Loading