Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

[WIP] chore: update to ipfsd-ctl@12.0.2 #493

Closed
wants to merge 2 commits into from
Closed
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
6 changes: 4 additions & 2 deletions .aegir.cjs
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
'use strict'

const path = require('path')
const createServer = require('ipfsd-ctl').createServer
const signaller = require('libp2p-webrtc-star-signalling-server')

/** @type {import('aegir').Options["build"]["config"]} */
/** @type {import('esbuild').BuildOptions} */
const esbuild = {
inject: [path.join(__dirname, 'scripts/node-globals.js')],
plugins: [
Expand Down Expand Up @@ -38,6 +37,9 @@ module.exports = {
}
},
async before (options) {

const { createServer } = await import ('ipfsd-ctl')

if (options.runner !== 'node') {
const ipfsdServer = await createServer({
host: '127.0.0.1',
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ jobs:
type:
- electron-main
- electron-renderer
moduleType:
- cjs
- esm
fail-fast: false
steps:
- uses: actions/checkout@v2
Expand All @@ -130,7 +133,7 @@ jobs:
./scripts/custom-runtime.sh
- uses: GabrielBB/xvfb-action@v1
with:
run: npm run test -- -t ${{ matrix.type }} --bail -f dist/cjs/node-test/*js
run: npm run test -- -t ${{ matrix.type }} --bail -f dist/${{matrix.moduleType}}/node-test/*js

release:
needs: [test-node, test-browser, test-electron]
Expand Down
Loading