Skip to content
Open
Show file tree
Hide file tree
Changes from 34 commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
0554db0
rough rough draft
bbrungardt02 May 19, 2025
f7cd31c
style fixes
bbrungardt02 May 19, 2025
39cb4aa
more refinement of under the hood logic
bbrungardt02 May 20, 2025
673f04c
added export etx
bbrungardt02 May 20, 2025
639394e
cosmetic touch ups
bbrungardt02 May 20, 2025
3f10160
fix: re-create yarn.lock
raphaelcoeffic May 29, 2025
d93920e
fix tests
bbrungardt02 Jun 1, 2025
509f4d9
fix e2e testing version
bbrungardt02 Jun 1, 2025
d3f6c35
removed generated code added to package json
bbrungardt02 Jun 1, 2025
2e73808
debug checksum electron node gyp
bbrungardt02 Jun 1, 2025
2850b9e
debug checksum electron node gyp again
bbrungardt02 Jun 1, 2025
cbc2ab6
debug checksum electron node gyp again
bbrungardt02 Jun 1, 2025
8b19d6e
attempt #10820497478392 fix electron node gyp
bbrungardt02 Jun 1, 2025
c0f3d96
attempt #2398758236823 fix electron node gyp
bbrungardt02 Jun 1, 2025
e6abfec
updated workflow to use local yarn barry
bbrungardt02 Jun 2, 2025
9725d9e
explicitly use local yarn berry
bbrungardt02 Jun 2, 2025
c35867b
make barry the yarn binary git workflow
bbrungardt02 Jun 2, 2025
3fd8cdd
fix: update @electron/node-gyp checksum for CI (Linux)
bbrungardt02 Jun 4, 2025
7744a6f
yarn lock generated on linux
bbrungardt02 Jun 5, 2025
ed50e51
github workflow issue
bbrungardt02 Jun 7, 2025
81c40f8
Merge branch 'dc6_buddybackup' of github.com:bbrungardt02/buddy into …
bbrungardt02 Jun 7, 2025
256fb86
workflow issue
bbrungardt02 Jun 7, 2025
ad4b847
Enable manual runs via workflow_dispatch
bbrungardt02 Jun 8, 2025
22e7190
Fix @electron/node-gyp checksum mismatch issue
bbrungardt02 Jun 29, 2025
d014058
Fix GitHub Actions pipeline checksum issues
bbrungardt02 Jun 29, 2025
0fe6c20
Fix Yarn Berry checksum issues with correct YARN_CHECKSUM_BEHAVIOR
bbrungardt02 Jun 29, 2025
eabe8f8
Skip Cloudflare deployment for forks
bbrungardt02 Jun 29, 2025
e6cae23
updated checksum correction
bbrungardt02 Jul 3, 2025
21a0da3
Merge branch 'main' into dc6_buddybackup
bbrungardt02 Jul 3, 2025
b9d497d
removed extra pipeline
bbrungardt02 Jul 14, 2025
7ecfce2
Merge branch 'dc6_buddybackup' of github.com:bbrungardt02/buddy into …
bbrungardt02 Jul 14, 2025
715a71e
added many tests to pass the coverage test
bbrungardt02 Jul 21, 2025
f4a9bd4
added many tests to pass the coverage test
bbrungardt02 Jul 21, 2025
68effd8
added more coverage tests
bbrungardt02 Jul 22, 2025
536d567
updated yarn checksum behavior to update
bbrungardt02 Aug 10, 2025
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
14 changes: 12 additions & 2 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
tags:
- "v*"
pull_request:
workflow_dispatch:


jobs:
lint:
Expand All @@ -23,6 +25,7 @@ jobs:
env:
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: "true"
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: "true"
YARN_CHECKSUM_BEHAVIOR: "ignore"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This shouldn't be necessary (see here).

run: yarn --immutable

- name: Lint
Expand All @@ -42,6 +45,7 @@ jobs:
env:
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: "true"
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: "true"
YARN_CHECKSUM_BEHAVIOR: "ignore"
run: yarn --immutable --mode=skip-build

- name: Format
Expand All @@ -61,6 +65,7 @@ jobs:
env:
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: "true"
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: "true"
YARN_CHECKSUM_BEHAVIOR: "ignore"
run: yarn --immutable

- name: Test
Expand All @@ -87,6 +92,7 @@ jobs:
env:
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: "true"
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: "true"
YARN_CHECKSUM_BEHAVIOR: "ignore"
run: yarn --immutable

- name: Test types
Expand All @@ -108,6 +114,7 @@ jobs:
env:
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: "true"
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: "true"
YARN_CHECKSUM_BEHAVIOR: "ignore"
run: yarn --immutable

- name: Build
Expand Down Expand Up @@ -148,6 +155,7 @@ jobs:
env:
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: "true"
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: "true"
YARN_CHECKSUM_BEHAVIOR: "ignore"
run: yarn --immutable

- name: Install build deps (Linux)
Expand Down Expand Up @@ -190,6 +198,7 @@ jobs:
env:
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: "true"
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: "true"
YARN_CHECKSUM_BEHAVIOR: "ignore"
run: yarn --immutable

- name: Fetch compiled source
Expand Down Expand Up @@ -273,6 +282,7 @@ jobs:
env:
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: "true"
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
YARN_CHECKSUM_BEHAVIOR: "ignore"
run: yarn --immutable --mode=skip-build

- name: Install browsers
Expand Down Expand Up @@ -360,7 +370,7 @@ jobs:
release-web-prod:
needs: [e2e-web, test, storybook]
runs-on: ubuntu-22.04
if: github.event_name != 'pull_request'
if: github.event_name != 'pull_request' && github.repository == 'EdgeTX/buddy'
permissions:
contents: read
deployments: write
Expand Down Expand Up @@ -450,4 +460,4 @@ jobs:
app-builds/*.dmg
app-builds/*.msi
app-builds/*.AppImage
draft: true
draft: true
15 changes: 11 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,14 @@
"graphql": "16.5.0",
"graphql-subscriptions": "^2.0.0",
"graphql-tag": "^2.12.6",
"graphql-type-json": "^0.3.2",
"i18next": "^21.10.0",
"i18next-browser-languagedetector": "^8.0.2",
"is-mobile": "^3.1.1",
"iso-639-1": "^3.1.2",
"js-file-download": "^0.4.12",
"js-yaml": "^4.1.0",
"jszip": "^3.10.1",
"ky": "^1.2.3",
"markdown-to-jsx": "7.4.6",
"md5": "^2.3.0",
Expand All @@ -88,8 +91,9 @@
"p-limit": "^3.1.0",
"p-map": "^5.5.0",
"react": "^17.0.2",
"react-diff-viewer-continued": "^3.4.0",
"react-dom": "^17.0.2",
"react-ga": "^3.3.0",
"react-ga": "^3.3.1",
"react-i18next": "^11.15.4",
"react-router-dom": "^6.0.2",
"semver": "^7.3.5",
Expand Down Expand Up @@ -162,6 +166,7 @@
"@testing-library/user-event": "^13.5.0",
"@types/debounce": "^1.2.1",
"@types/is-ci": "^3.0.4",
"@types/js-yaml": "^4.0.9",
"@types/md5": "^2.3.5",
"@types/node": "^20.12.5",
"@types/range-parser": "^1.2.7",
Expand All @@ -187,7 +192,7 @@
"dotenv": "^10.0.0",
"electron": "^29.3.0",
"electron-builder": "^24.13.3",
"electron-devtools-installer": "^3.2.0",
"electron-devtools-installer": "^3.2.1",
"esbuild-loader": "^2.21.0",
"eslint": "^8.4.1",
"eslint-config-airbnb": "^19.0.2",
Expand Down Expand Up @@ -216,7 +221,7 @@
"native-ext-loader": "^2.3.0",
"nock": "^14.0.0-beta.5",
"node-bindings-loader": "^1.5.0",
"playwright": "^1.29.1",
"playwright": "1.29.1",
"prettier": "^2.8.8",
"range-parser": "^1.2.1",
"react-dev-utils": "^11.0.4",
Expand All @@ -243,6 +248,8 @@
"[email protected]": "patch:graphql@npm:16.5.0#.yarn/patches/graphql-npm-16.5.0-348f68b718",
"@types/[email protected]": "patch:@types/testing-library__jest-dom@npm:5.14.3#.yarn/patches/@types-testing-library__jest-dom-npm-5.14.3-0aa35d2c00.patch",
"[email protected]": "patch:snapshot-diff@npm:0.9.0#.yarn/patches/snapshot-diff-npm-0.9.0-44279ef523",
"styled-components": "^5"
"styled-components": "^5",
"hoist-non-react-statics/@types/react": "17.x",
"@types/react": "17.x"
}
}
18 changes: 10 additions & 8 deletions src/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
if (allowedPermissions.includes(permission)) {
callback(true);
} else {
console.error(

Check warning on line 85 in src/main/index.ts

View workflow job for this annotation

GitHub Actions / lint

Unexpected console statement
`The application tried to request permission for '${permission}'. This permission was not whitelisted and has been blocked.`
);

Expand All @@ -92,10 +92,10 @@
}

if (!config.isProduction) {
console.log("loading renderer in development");

Check warning on line 95 in src/main/index.ts

View workflow job for this annotation

GitHub Actions / lint

Unexpected console statement
void mainWindow.loadURL(`http://localhost:8081/index.html`);
} else {
console.log("loading renderer");

Check warning on line 98 in src/main/index.ts

View workflow job for this annotation

GitHub Actions / lint

Unexpected console statement
void mainWindow.loadFile(path.join(__dirname, "../renderer/index.html"));
}

Expand Down Expand Up @@ -132,14 +132,16 @@
APOLLO_DEVELOPER_TOOLS,
// eslint-disable-next-line import/no-extraneous-dependencies
} = await import("electron-devtools-installer");
installExtension(REACT_DEVELOPER_TOOLS).catch((err) =>
// eslint-disable-next-line no-console
console.log("Error loading React DevTools: ", err)
);
installExtension(APOLLO_DEVELOPER_TOOLS).catch((err) =>
// eslint-disable-next-line no-console
console.log("Error loading Apollo DevTools: ", err)
);
// forceDownload = true will redownload the latest unpacked extension,
// avoiding any bad .crx headers lingering on disk
installExtension(REACT_DEVELOPER_TOOLS, true)
.then((name) => console.log(`Added Extension: ${name}`))

Check warning on line 138 in src/main/index.ts

View workflow job for this annotation

GitHub Actions / lint

Unexpected console statement
.catch((err) => console.error("Error loading React DevTools:", err));

Check warning on line 139 in src/main/index.ts

View workflow job for this annotation

GitHub Actions / lint

Unexpected console statement

installExtension(APOLLO_DEVELOPER_TOOLS, true)
.then((name) => console.log(`Added Extension: ${name}`))

Check warning on line 142 in src/main/index.ts

View workflow job for this annotation

GitHub Actions / lint

Unexpected console statement
.catch((err) => console.error("Error loading Apollo DevTools:", err));

Check warning on line 143 in src/main/index.ts

View workflow job for this annotation

GitHub Actions / lint

Unexpected console statement

mainWindow?.webContents.openDevTools({ mode: "detach" });
}
});
Expand All @@ -150,7 +152,7 @@
const startBackend = async (): Promise<void> => {
const mocked = config.startParams.isMocked || config.startParams.isE2e;
if (mocked) {
console.log("Creating backend in mocked mode");

Check warning on line 155 in src/main/index.ts

View workflow job for this annotation

GitHub Actions / lint

Unexpected console statement
}

const busLink = createBusLinkBackend({
Expand Down
Loading
Loading