Skip to content

Commit a1761bd

Browse files
misc cleanup and test fix
1 parent 3ce8108 commit a1761bd

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
branches: [main]
66
workflow_dispatch: {}
77

8-
name: build
8+
name: Build and Test
99

1010
jobs:
1111
host_builds:

test/release.test.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,14 @@ const REQUIRED_FILES = [
2424
describe(`Release ${packFile}`, function () {
2525
this.timeout(10000);
2626

27+
beforeEach(function() {
28+
if (process.arch !== 'x64') {
29+
this.skip();
30+
}
31+
});
32+
2733
let tarFileList;
28-
before(() => {
34+
beforeEach(() => {
2935
expect(fs.existsSync(packFile)).to.equal(false);
3036
cp.execSync('npm pack', { stdio: 'ignore' });
3137
tarFileList = [];
@@ -38,7 +44,7 @@ describe(`Release ${packFile}`, function () {
3844
});
3945
});
4046

41-
after(() => {
47+
afterEach(() => {
4248
fs.unlinkSync(packFile);
4349
});
4450

0 commit comments

Comments
 (0)