Skip to content

Commit

Permalink
js
Browse files Browse the repository at this point in the history
  • Loading branch information
millotp committed Jul 11, 2024
1 parent 31b67ec commit 04ad81c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,8 @@ jobs:
- check_green
if: |
always() &&
!contains(needs.*.result, 'cancelled') &&
!contains(needs.*.result, 'failure') &&
github.ref == 'refs/heads/main'
permissions:
pull-requests: write
Expand Down
2 changes: 1 addition & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
publish="website/build"

[build.environment]
YARN_VERSION = "3.5.0"
YARN_VERSION = "4.3.1"
13 changes: 8 additions & 5 deletions scripts/cts/runCts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ async function runCtsOne(
return;
}

const filter = (mapper: (string) => string): string => folders.map(mapper).join(' ');
const filter = (mapper: (f: string) => string): string => folders.map(mapper).join(' ');

switch (language) {
case 'csharp':
Expand Down Expand Up @@ -60,9 +60,12 @@ async function runCtsOne(
);
break;
case 'javascript':
await run('YARN_ENABLE_IMMUTABLE_INSTALLS=false yarn install && yarn test', {
cwd,
});
await run(
`YARN_ENABLE_IMMUTABLE_INSTALLS=false yarn install && yarn test ${filter((f) => `dist/${f}`)}`,
{
cwd,
},
);
break;
case 'kotlin':
await run('./gradle/gradlew -p tests/output/kotlin allTests', { language });
Expand All @@ -86,7 +89,7 @@ async function runCtsOne(
);
break;
case 'ruby':
await run(`bundle install && bundle exec rake test --trace ${filter((f) => f)}`, {
await run(`bundle install && bundle exec rake test --trace`, {
cwd,
language,
});
Expand Down
2 changes: 1 addition & 1 deletion templates/javascript/tests/package.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "javascript-tests",
"version": "1.0.0",
"scripts": {
"test": "rm -rf dist || true && tsc && jest dist --passWithNoTests"
"test": "rm -rf dist || true && tsc && jest --passWithNoTests"
},
"dependencies": {
{{#packageDependencies}}
Expand Down

0 comments on commit 04ad81c

Please sign in to comment.