Skip to content

Commit 13dcaeb

Browse files
committed
👷 restrict counter only on dev branch
Issue: CLDSRV-860
1 parent a6705dd commit 13dcaeb

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

.github/scripts/check-diff-async.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function getChangedJsFiles() {
2020
'--diff-filter=ACMR',
2121
base,
2222
'--',
23-
'*.js',
23+
'**/*.js',
2424
], { encoding: 'utf8' }).trim();
2525

2626
return output ? output.split('\n').filter(f => f.endsWith('.js')) : [];

.github/scripts/count-async-functions.mjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* Usage: node scripts/count-async-functions.mjs
66
*/
7-
import { readFileSync } from 'node:fs';
7+
import { readFileSync, appendFileSync, writeFileSync } from 'node:fs';
88
import { Project, SyntaxKind } from 'ts-morph';
99

1010
function getSourcePathsFromPackageJson() {
@@ -84,7 +84,6 @@ console.log('');
8484
console.log(`Migration (trend): ${asyncFunctions}/${asyncFunctions + callbackFunctions} (${migrationPercent}%)`);
8585

8686
if (process.env.GITHUB_STEP_SUMMARY) {
87-
const { appendFileSync, writeFileSync } = await import('node:fs');
8887
appendFileSync(process.env.GITHUB_STEP_SUMMARY, [
8988
'## Async/Await Migration Progress',
9089
'',

.github/workflows/tests.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ jobs:
111111

112112
async-migration-report:
113113
runs-on: ubuntu-24.04
114+
if: startsWith(github.ref, 'refs/heads/development/')
114115
steps:
115116
- name: Checkout
116117
uses: actions/checkout@v4

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@
9595
"index.js",
9696
"dataserver.js",
9797
"mdserver.js",
98+
"pfsserver.js",
9899
"managementAgent.js",
99100
"bin/**/*.js"
100101
],

0 commit comments

Comments
 (0)