Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Dec 21, 2022
1 parent d18b2d1 commit 3ebb8e4
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -58,7 +58,7 @@ jobs:
run: npm run test

eslint:
name: ES Lint
name: ESLint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"build:transpile:js-transpiler-bindgen": "jsct transpile obj/js-transpiler-bindgen.wasm --compat --map console=../lib/console.js --out-dir obj",
"build:transpile:wasm-tools": "jsct transpile obj/wasm-tools.wasm --map console=../lib/console.js --compat --out-dir obj",
"lint": "eslint -c eslintrc.cjs src/**/*.js",
"test": "mocha -u tdd test/test.js --timeout 20000",
"test:dev": "mocha -u tdd -b test/test.js --timeout 20000 -n conditions=test"
"test": "mocha -u tdd test/test.js --timeout 60000",
"test:dev": "mocha -u tdd -b test/test.js --timeout 60000 -n conditions=test"
}
}
2 changes: 1 addition & 1 deletion test/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export async function apiTest (fixtures) {
ok(source.includes('testwasi'));
ok(source.includes('FUNCTION_TABLE'));
ok(source.includes('export const $init'));
}).timeout(60_000);
});

test('Optimize', async () => {
const component = await readFile(`test/fixtures/${fixtures[0]}`);
Expand Down
2 changes: 1 addition & 1 deletion test/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export async function cliTest (fixtures) {
finally {
await cleanup();
}
}).timeout(60_000);
});

test('Optimize', async () => {
try {
Expand Down
4 changes: 2 additions & 2 deletions test/codegen.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ export async function codegenTest (fixtures) {
const flags = await readFlags(`test/runtime/${name}.ts`);
var { stderr } = await exec(jsctPath, 'transpile', `test/fixtures/${fixture}`, '--name', name, ...flags, '-o', `test/output/${name}`);
strictEqual(stderr, '');
}).timeout(20_000);
});

test(`${fixture} lint`, async () => {
const flags = await readFlags(`test/runtime/${name}.ts`);
if (flags.includes('--asm'))
return;
var { stderr } = await exec(eslintPath, `test/output/${name}/${name}.js`, '-c', 'test/eslintrc.cjs');
strictEqual(stderr, '');
}).timeout(20_000);
});
}

// TypeScript tests _must_ run after codegen to complete successfully
Expand Down

0 comments on commit 3ebb8e4

Please sign in to comment.