mirror of
https://github.com/trezor/trezor-suite.git
synced 2026-02-20 00:33:07 +01:00
fix(ci): Optimized desktop and connect build for e2e
This commit is contained in:
14
.github/actions/release-connect/action.yml
vendored
14
.github/actions/release-connect/action.yml
vendored
@@ -29,6 +29,10 @@ inputs:
|
||||
description: "Node environment"
|
||||
type: string
|
||||
required: true
|
||||
connectPopupUrl:
|
||||
description: "Full URL to connect popup (for webextension examples)"
|
||||
type: string
|
||||
required: false
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
@@ -37,7 +41,6 @@ runs:
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: true
|
||||
cache: yarn
|
||||
|
||||
# Pull only files needed for connect to save LFS bandwidth
|
||||
- name: "Pull LFS files for connect"
|
||||
@@ -54,6 +57,7 @@ runs:
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version-file: ".nvmrc"
|
||||
cache: yarn
|
||||
|
||||
- name: Install dependencies
|
||||
shell: bash
|
||||
@@ -61,7 +65,6 @@ runs:
|
||||
echo -e "\nenableScripts: false" >> .yarnrc.yml
|
||||
yarn install --immutable # focus install is not used here to make sure that all global patches are applied for the release.
|
||||
|
||||
# todo: might not be needed
|
||||
- name: Build connect-web
|
||||
shell: bash
|
||||
env:
|
||||
@@ -105,12 +108,9 @@ runs:
|
||||
if: inputs.buildArtifacts == 'true'
|
||||
shell: bash
|
||||
env:
|
||||
FULL_URL: https://${{ inputs.serverHostname }}/suite-web/${{ needs.extract-branch.outputs.branch }}/web/connect-popup
|
||||
FULL_URL: ${{ inputs.connectPopupUrl || format('https://{0}/{1}', inputs.serverHostname, inputs.serverPath) }}
|
||||
run: |
|
||||
cd packages/connect-examples/webextension
|
||||
yarn
|
||||
yarn build
|
||||
cd ../../../
|
||||
yarn workspace @trezor/webextension-mv3-sw-ts build
|
||||
echo "FULL_URL is set to ${FULL_URL}"
|
||||
node ./packages/connect-examples/update-webextensions-sw.js --trezor-connect-src "${FULL_URL}"
|
||||
./packages/connect-examples/webextension/scripts/check-webextension-bundle-size.sh
|
||||
|
||||
@@ -29,7 +29,7 @@ jobs:
|
||||
- name: Install dependencies, build libs
|
||||
shell: bash
|
||||
run: |
|
||||
yarn install --immutable
|
||||
yarn workspaces focus @trezor/suite-desktop @trezor/suite-desktop-core @trezor/suite-build @trezor/suite @trezor/suite-data @trezor/transport-bridge @suite-common/message-system
|
||||
yarn message-system-sign-config
|
||||
yarn workspace @trezor/suite-data build:lib
|
||||
yarn workspace @trezor/transport-bridge build:lib
|
||||
|
||||
@@ -60,6 +60,7 @@ jobs:
|
||||
uploadArtifacts: "true"
|
||||
buildArtifacts: "true"
|
||||
nodeEnv: "development"
|
||||
connectPopupUrl: "https://dev.suite.sldev.cz/suite-web/${{ needs.extract-branch.outputs.branch }}/web/connect-popup"
|
||||
|
||||
run-e2e-suite-web-tests:
|
||||
if: github.repository == 'trezor/trezor-suite'
|
||||
|
||||
1
.github/workflows/test-suite-web-e2e-pr.yml
vendored
1
.github/workflows/test-suite-web-e2e-pr.yml
vendored
@@ -99,6 +99,7 @@ jobs:
|
||||
uploadArtifacts: "true"
|
||||
buildArtifacts: "true"
|
||||
nodeEnv: "development"
|
||||
connectPopupUrl: "https://dev.suite.sldev.cz/suite-web/${{ needs.extract-branch.outputs.branch }}/web/connect-popup"
|
||||
|
||||
post-currents-link:
|
||||
if: github.repository == 'trezor/trezor-suite' && github.event_name == 'pull_request' && needs.check-previous-runs.outputs.skip_tests != 'true'
|
||||
|
||||
@@ -72,6 +72,7 @@ jobs:
|
||||
uploadArtifacts: "true"
|
||||
buildArtifacts: "true"
|
||||
nodeEnv: "development"
|
||||
connectPopupUrl: "https://dev.suite.sldev.cz/suite-web/${{ needs.extract-branch.outputs.branch }}/web/connect-popup"
|
||||
|
||||
run-e2e-suite-web-tests:
|
||||
if: github.repository == 'trezor/trezor-suite'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{
|
||||
"ignore-patterns": ["libDev", "lib"],
|
||||
"ignores": ["node-loader"]
|
||||
"ignores": ["node-loader", "rimraf"]
|
||||
}
|
||||
|
||||
@@ -51,6 +51,7 @@
|
||||
"electron-devtools-installer": "^4.0.0",
|
||||
"glob": "^11.0.3",
|
||||
"lodash": "^4.17.21",
|
||||
"rimraf": "^6.0.1",
|
||||
"terser-webpack-plugin": "^5.3.16",
|
||||
"webpack": "5.104.1"
|
||||
}
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
"esbuild": "^0.25.2",
|
||||
"html-inline-script-webpack-plugin": "^3.2.1",
|
||||
"html-webpack-plugin": "5.6.6",
|
||||
"rimraf": "^6.0.1",
|
||||
"webpack": "5.104.1"
|
||||
},
|
||||
"dependencies": {
|
||||
|
||||
@@ -15701,6 +15701,7 @@ __metadata:
|
||||
lodash: "npm:^4.17.21"
|
||||
node-loader: "npm:^2.1.0"
|
||||
openpgp: "npm:^6.3.0"
|
||||
rimraf: "npm:^6.0.1"
|
||||
terser-webpack-plugin: "npm:^5.3.16"
|
||||
webpack: "npm:5.104.1"
|
||||
ws: "npm:^8.18.0"
|
||||
@@ -16041,6 +16042,7 @@ __metadata:
|
||||
react: "npm:19.1.0"
|
||||
react-dom: "npm:19.1.0"
|
||||
react-intl: "npm:^8.0.6"
|
||||
rimraf: "npm:^6.0.1"
|
||||
styled-components: "npm:^6.1.19"
|
||||
usb: "npm:^2.15.0"
|
||||
webpack: "npm:5.104.1"
|
||||
|
||||
Reference in New Issue
Block a user