Skip to content

Commit

Permalink
fix: format
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushmanchhabra committed Oct 5, 2023
1 parent cd585dc commit e9fda7f
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 43 deletions.
28 changes: 12 additions & 16 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ jobs:
e2e:
strategy:
matrix:
os: [macos-13]
node: [20]
os: [macos-12, ubuntu-22.04, windows-2022]
node: [16, 18, 20]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
Expand All @@ -32,17 +32,13 @@ jobs:
run: corepack enable
- name: Install dependencies
run: npm ci
- name: TMP - Build Preview
run: npm run demo
- name: TMP - Run Preview
run: npm run preview
# - name: Check for formatting errors
# run: npm run ci:fmt
# - name: Check for linting errors
# run: npm run ci:lnt
# - name: Link module
# run: npm link nw-builder
# - name: Run unit tests
# run: npm run test:unit
# - name: Run Selenium tests
# run: npm run test:e2e
- name: Check for formatting errors
run: npm run ci:fmt
- name: Check for linting errors
run: npm run ci:lnt
- name: Link module
run: npm link nw-builder
- name: Run unit tests
run: npm run test:unit
- name: Run Selenium tests
run: npm run test:e2e
32 changes: 16 additions & 16 deletions src/get.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,22 +197,22 @@ async function get_nwjs({
bar.stop();
if (platform === "linux") {
compressing.tgz.uncompress(out, cacheDir).then(() => resolve());
// } else if (platform === "osx") {
// //TODO: compressing package does not restore symlinks on some macOS (eg: circleCI)
// const exec = function (cmd) {
// log.debug(cmd);
// const result = spawnSync(cmd, {
// shell: true,
// stdio: "inherit",
// });
// if (result.status !== 0) {
// log.debug(`Command failed with status ${result.status}`);
// if (result.error) console.log(result.error);
// EXIT(1);
// }
// return resolve();
// };
// exec(`unzip -o "${out}" -d "${cacheDir}"`);
// } else if (platform === "osx") {
// //TODO: compressing package does not restore symlinks on some macOS (eg: circleCI)
// const exec = function (cmd) {
// log.debug(cmd);
// const result = spawnSync(cmd, {
// shell: true,
// stdio: "inherit",
// });
// if (result.status !== 0) {
// log.debug(`Command failed with status ${result.status}`);
// if (result.error) console.log(result.error);
// EXIT(1);
// }
// return resolve();
// };
// exec(`unzip -o "${out}" -d "${cacheDir}"`);
} else {
compressing.zip.uncompress(out, cacheDir).then(() => resolve());
}
Expand Down
11 changes: 0 additions & 11 deletions test/fixture/preview.js

This file was deleted.

0 comments on commit e9fda7f

Please sign in to comment.