Skip to content

Commit 16e7ddd

Browse files
authored
chore: lint, prettier, and PR Github Action (#5910)
* chore: fixing linter error and running prettier * Adding PRs against master branch to Github Actions
1 parent 014cbf5 commit 16e7ddd

File tree

4 files changed

+22
-15
lines changed

4 files changed

+22
-15
lines changed

.github/workflows/test.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
name: Test
2+
23
on:
34
push:
5+
pull_request:
6+
branches:
7+
- master
8+
49
jobs:
510
test:
611
runs-on: ubuntu-20.04

packages/app-builder-lib/src/targets/nsis/NsisTarget.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -119,14 +119,14 @@ export class NsisTarget extends Target {
119119

120120
async finishBuild(): Promise<any> {
121121
try {
122-
const { pattern } = this.packager.artifactPatternConfig(this.options, this.installerFilenamePattern);
123-
const builds = new Set([this.archs]);
122+
const { pattern } = this.packager.artifactPatternConfig(this.options, this.installerFilenamePattern)
123+
const builds = new Set([this.archs])
124124
if (pattern.includes("${arch}") && this.archs.size > 1) {
125-
;[...this.archs].forEach(([arch, appOutDir]) => builds.add(new Map().set(arch, appOutDir)));
125+
;[...this.archs].forEach(([arch, appOutDir]) => builds.add(new Map().set(arch, appOutDir)))
126126
}
127-
const doBuildArchs = builds.values();
128-
for (let archs of doBuildArchs) {
129-
await this.buildInstaller(archs);
127+
const doBuildArchs = builds.values()
128+
for (const archs of doBuildArchs) {
129+
await this.buildInstaller(archs)
130130
}
131131
} finally {
132132
await this.packageHelper.finishBuild()

test/src/updater/differentialUpdateTest.ts

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -335,11 +335,14 @@ async function testBlockMap(oldDir: string, newDir: string, updaterClass: any, a
335335
doTest()
336336
.then(() => resolve(null))
337337
.catch(reject)
338-
}).then(v => {
339-
httpServerProcess.kill()
340-
return v
341-
}, e => {
342-
httpServerProcess.kill()
343-
throw e
344-
})
338+
}).then(
339+
v => {
340+
httpServerProcess.kill()
341+
return v
342+
},
343+
e => {
344+
httpServerProcess.kill()
345+
throw e
346+
}
347+
)
345348
}

test/src/windows/appxTest.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ it.ifDevOrWinCi(
2020
projectDirCreated: async projectDir => {
2121
const targetDir = path.join(projectDir, "build", "appx")
2222
await mkdir(targetDir, { recursive: true })
23-
await Promise.all(["BadgeLogo.scale-100.png", "BadgeLogo.scale-140.png", "BadgeLogo.scale-180.png"]
24-
.map(it => copyTestAsset(`appx-assets/${it}`, path.join(targetDir, it))))
23+
await Promise.all(["BadgeLogo.scale-100.png", "BadgeLogo.scale-140.png", "BadgeLogo.scale-180.png"].map(it => copyTestAsset(`appx-assets/${it}`, path.join(targetDir, it))))
2524
},
2625
signedWin: true,
2726
}

0 commit comments

Comments
 (0)