Skip to content

chore(deps-dev): bump vitest from 1.6.0 to 2.0.5 #5947

chore(deps-dev): bump vitest from 1.6.0 to 2.0.5

chore(deps-dev): bump vitest from 1.6.0 to 2.0.5 #5947

Workflow file for this run

name: Substrate Connect CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
permissions:
contents: write
pages: write
id-token: write
pull-requests: write
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x]
steps:
- uses: actions/[email protected]
- uses: ./.github/actions/turbo-build
with:
node-version: ${{ matrix.node-version }}
playwright-test-extension:
needs: [build]
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: ./.github/actions/turbo-build
- name: Build extension with Manifest v3 for Chrome
run: pnpm build:chrome
working-directory: ./projects/extension
- run: pnpm playwright:install
working-directory: ./projects/extension
- name: Test projects/extension
run: pnpm playwright:chromium --trace on
working-directory: ./projects/extension
- uses: actions/upload-artifact@v4
if: failure()
with:
name: playwright-report-substrate-connect-extension-mv3-chrome
path: ./projects/extension/playwright-report
playwright-test-examples:
needs: [build]
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: ./.github/actions/turbo-build
- run: pnpm playwright:install
working-directory: ./examples/light-client-extension-helpers-extension
- name: Test examples/light-client-extension-helpers-extension
run: pnpm playwright:chromium --trace on
working-directory: ./examples/light-client-extension-helpers-extension
- uses: actions/upload-artifact@v4
if: failure()
with:
name: playwright-report-light-client-extension-helpers-extension-mv3-chrome
path: ./examples/light-client-extension-helpers-extension/playwright-report
playwright-test-wallet-template:
needs: [build]
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: ./.github/actions/turbo-build
- name: Build extension with Manifest v3 for Chrome
run: pnpm build:chrome
working-directory: ./projects/wallet-template
- run: pnpm playwright:install
working-directory: ./projects/wallet-template
- name: Test projects/wallet-template
run: pnpm playwright:chromium --trace on
working-directory: ./projects/wallet-template
- uses: actions/upload-artifact@v4
if: failure()
with:
name: playwright-report-substrate-connect-wallet-template-mv3-chrome
path: ./projects/wallet-template/playwright-report
changesets:
if: github.ref == 'refs/heads/main'
needs: [build]
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: ./.github/actions/turbo-build
- name: Create Release Pull Request
uses: changesets/action@v1
with:
commit: "chore: version packages"
title: "chore: version packages"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
npm-publish:
if: github.ref == 'refs/heads/main'
needs: [build]
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: ./.github/actions/turbo-build
- name: "@substrate/connect Publish"
id: publish_connect
uses: ./.github/actions/publish-package
with:
token: ${{ secrets.NPM_PUBLISH_AUTOMATION_TOKEN }}
tarball-name: "substrate-connect"
package-directory: ./packages/connect
- name: "@substrate/connect-extension-protocol Publish"
id: publish_connect_extension_protocol
uses: ./.github/actions/publish-package
with:
token: ${{ secrets.NPM_PUBLISH_AUTOMATION_TOKEN }}
tarball-name: "substrate-connect-extension-protocol"
package-directory: ./packages/connect-extension-protocol
- name: "@substrate/connect-known-chains Publish"
uses: ./.github/actions/publish-package
with:
token: ${{ secrets.NPM_PUBLISH_AUTOMATION_TOKEN }}
tarball-name: "substrate-connect-known-chains"
package-directory: ./packages/connect-known-chains
- name: "@substrate/light-client-extension-helpers Publish"
uses: ./.github/actions/publish-package
with:
token: ${{ secrets.NPM_PUBLISH_AUTOMATION_TOKEN }}
tarball-name: "substrate-light-client-extension-helpers"
package-directory: ./packages/light-client-extension-helpers
- name: "@substrate/connect-discovery"
uses: ./.github/actions/publish-package
with:
token: ${{ secrets.NPM_PUBLISH_AUTOMATION_TOKEN }}
tarball-name: "substrate-connect-discovery"
package-directory: ./packages/connect-discovery
- name: "@substrate/discovery"
uses: ./.github/actions/publish-package
with:
token: ${{ secrets.NPM_PUBLISH_AUTOMATION_TOKEN }}
tarball-name: "substrate-discovery"
package-directory: ./packages/discovery
- name: "@substrate/smoldot-discovery"
uses: ./.github/actions/publish-package
with:
token: ${{ secrets.NPM_PUBLISH_AUTOMATION_TOKEN }}
tarball-name: "substrate-smoldot-discovery"
package-directory: ./packages/smoldot-discovery
upload-extension-artifacts:
if: github.ref == 'refs/heads/main'
needs: [build]
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions/upload-artifact@v4
with:
name: substrate-connect-extension-source-code
path: ./projects/extension
- uses: ./.github/actions/turbo-build
- run: pnpm --filter @substrate/extension build:firefox
- uses: actions/upload-artifact@v4
with:
name: substrate-connect-extension-mv3-firefox
path: ./projects/extension/dist
- run: pnpm --filter @substrate/extension build:chrome
- uses: actions/upload-artifact@v4
with:
name: substrate-connect-extension-mv3-chrome
path: ./projects/extension/dist
docs:
if: github.ref == 'refs/heads/main'
needs: [build]
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: ./.github/actions/turbo-build
- name: Generate API Docs
run: pnpm api-docs
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
# Upload entire repository
path: './docs'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
all:
# This dummy job depends on all the mandatory checks. It succeeds if and only if all CI checks
# are successful.
needs: [build, playwright-test-extension, playwright-test-examples, playwright-test-wallet-template]
runs-on: ubuntu-latest
steps:
- run: echo Success