trying out what circleci support said
This commit is contained in:
parent
852ab56253
commit
ba4eb5f033
2 changed files with 6 additions and 3 deletions
|
@ -3,7 +3,7 @@ jobs:
|
||||||
build:
|
build:
|
||||||
working_directory: ~/Cider
|
working_directory: ~/Cider
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/node:16
|
- image: circleci/node:16-browsers
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run:
|
- run:
|
||||||
|
@ -32,6 +32,9 @@ jobs:
|
||||||
sudo dpkg --add-architecture i386
|
sudo dpkg --add-architecture i386
|
||||||
sudo apt-get update -y
|
sudo apt-get update -y
|
||||||
sudo apt-get install -y wine32
|
sudo apt-get install -y wine32
|
||||||
|
- run:
|
||||||
|
name: Base Functionality Testing
|
||||||
|
command: yarn test
|
||||||
- store_test_results:
|
- store_test_results:
|
||||||
path: test-results
|
path: test-results
|
||||||
- run:
|
- run:
|
||||||
|
|
|
@ -6,7 +6,7 @@ import * as fs from "fs";
|
||||||
test("Launch electron app", async () => {
|
test("Launch electron app", async () => {
|
||||||
|
|
||||||
const paths = {
|
const paths = {
|
||||||
"mainBuild": resolve(__dirname, "../../dist/"),
|
"mainBuild": resolve(__dirname, "../../build/"),
|
||||||
"main": resolve(__dirname, "../main"),
|
"main": resolve(__dirname, "../main"),
|
||||||
"root": resolve(__dirname, "../../"),
|
"root": resolve(__dirname, "../../"),
|
||||||
"cwd": __dirname,
|
"cwd": __dirname,
|
||||||
|
@ -17,7 +17,7 @@ test("Launch electron app", async () => {
|
||||||
|
|
||||||
console.log(fs.readdirSync(paths.main))
|
console.log(fs.readdirSync(paths.main))
|
||||||
|
|
||||||
const electronApp = await electron.launch({ args: ['dist/index.js'], cwd: paths.root });
|
const electronApp = await electron.launch({ args: ['build/index.js'], cwd: paths.root });
|
||||||
|
|
||||||
const appPath = await electronApp.evaluate(async ({ app }) => {
|
const appPath = await electronApp.evaluate(async ({ app }) => {
|
||||||
// This runs in the main Electron process, parameter here is always
|
// This runs in the main Electron process, parameter here is always
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue