[Snyk] Security upgrade aegir from 37.12.1 to 44.1.1 #310
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- '**' | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: lts/* | |
- uses: ipfs/aegir/actions/cache-node-modules@master | |
check: | |
name: Check | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: lts/* | |
- uses: ipfs/aegir/actions/cache-node-modules@master | |
- run: | | |
npm run lint | |
npm run dep-check -- -- -- -p | |
npm run dep-check -- -- -- -- --unused | |
test-node: | |
name: Unit tests node ${{ matrix.node }} ${{ matrix.os }} | |
needs: build | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
node: [lts/*] | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node }} | |
- uses: ipfs/aegir/actions/cache-node-modules@master | |
- run: npm run test:node | |
- uses: codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b # v2.1.0 | |
with: | |
flags: node | |
test-chrome: | |
name: Unit tests chrome | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: lts/* | |
- uses: ipfs/aegir/actions/cache-node-modules@master | |
- run: npm run test:chrome | |
- uses: codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b # v2.1.0 | |
with: | |
flags: chrome | |
test-chrome-webworker: | |
name: Unit tests chrome-webworker | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: lts/* | |
- uses: ipfs/aegir/actions/cache-node-modules@master | |
- run: npm run test:chrome-webworker | |
- uses: codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b # v2.1.0 | |
with: | |
flags: chrome-webworker | |
test-firefox: | |
name: Unit tests firefox | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: lts/* | |
- uses: ipfs/aegir/actions/cache-node-modules@master | |
- run: npm run test:firefox | |
- uses: codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b # v2.1.0 | |
with: | |
flags: firefox | |
test-firefox-webworker: | |
name: Unit tests firefox-webworker | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: lts/* | |
- uses: ipfs/aegir/actions/cache-node-modules@master | |
- run: npx playwright install --with-deps | |
- run: npm run test:firefox-webworker | |
- uses: codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b # v2.1.0 | |
with: | |
flags: firefox-webworker | |
test-electron-main: | |
name: Unit tests electron-main | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: lts/* | |
- uses: ipfs/aegir/actions/cache-node-modules@master | |
- uses: GabrielBB/xvfb-action@v1 | |
with: | |
run: npm run test:electron-main | |
- uses: codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b # v2.1.0 | |
with: | |
flags: electron-main | |
test-interop: | |
name: Interop tests ${{ matrix.project }} ${{ matrix.type }} | |
needs: build | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
type: | |
- node | |
- browser | |
#- electron-main | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: lts/* | |
- uses: ipfs/aegir/actions/cache-node-modules@master | |
- run: npm run test:interop -- -- -- -t ${{ matrix.type }} | |
- uses: codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b # v2.1.0 | |
with: | |
flags: interop-${{ matrix.type }} | |
test-interface: | |
name: Interface tests ${{ matrix.suite }} ${{ matrix.type }} | |
needs: build | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
type: | |
- node | |
- browser | |
#- electron-main | |
suite: | |
- test:interface:core | |
- test:interface:client | |
- test:interface:http-go | |
- test:interface:http-js | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: lts/* | |
- uses: ipfs/aegir/actions/cache-node-modules@master | |
- run: npm run ${{ matrix.suite }} -- -- -t ${{ matrix.type }} | |
- uses: codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b # v2.1.0 | |
with: | |
flags: interface-${{ matrix.type }} | |
test-interface-message-port-client: | |
name: Interface tests test:interface:message-port-client browser | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: lts/* | |
- uses: ipfs/aegir/actions/cache-node-modules@master | |
- run: npx playwright install --with-deps | |
- run: npm run test:interface:message-port-client | |
release: | |
runs-on: ubuntu-latest | |
needs: [ | |
test-node, | |
test-chrome, | |
test-chrome-webworker, | |
test-firefox, | |
test-firefox-webworker, | |
test-electron-main, | |
test-interop, | |
test-interface, | |
test-interface-message-port-client | |
] | |
if: github.event_name == 'push' && github.ref == 'refs/heads/master' | |
steps: | |
- uses: GoogleCloudPlatform/release-please-action@v2 | |
id: release | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
command: manifest | |
release-type: node | |
manifest-file: .release-please-manifest.json | |
config-file: .release-please.json | |
changelog-types: | | |
[ | |
{ "type": "feat", "section": "Features", "hidden": false }, | |
{ "type": "fix", "section": "Bug Fixes", "hidden": false }, | |
{ "type": "chore", "section": "Trivial Changes", "hidden": false }, | |
{ "type": "docs", "section": "Documentation", "hidden": false }, | |
{ "type": "deps", "section": "Dependencies", "hidden": false } | |
] | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: lts/* | |
registry-url: 'https://registry.npmjs.org' | |
- uses: ipfs/aegir/actions/cache-node-modules@master | |
- uses: ipfs/aegir/actions/docker-login@master | |
with: | |
docker-token: ${{ secrets.DOCKER_TOKEN }} | |
docker-username: ${{ secrets.DOCKER_USERNAME }} | |
- if: ${{ steps.release.outputs.releases_created }} | |
name: Run release version | |
run: | | |
git update-index --assume-unchanged packages/ipfs-core/src/version.js packages/ipfs-http-server/src/version.js packages/ipfs/src/package.js | |
npm run --if-present release | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- if: ${{ !steps.release.outputs.releases_created }} | |
name: Run release rc | |
run: | | |
git update-index --assume-unchanged packages/ipfs-core/src/version.js packages/ipfs-http-server/src/version.js packages/ipfs/src/package.js | |
npm run --if-present release:rc | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |