Skip to content

Commit c6333a5

Browse files
feat: add new check to prevent TS direct dep (#119)
* feat: add new check to prevent TS direct dep * chore: move check location * chore: use main before merge --------- Co-authored-by: mshanemc <shane.mclaughlin@salesforce.com>
1 parent 3385209 commit c6333a5

2 files changed

Lines changed: 19 additions & 0 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
on: workflow_call
2+
3+
jobs:
4+
prevent-typescript-dependency:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v4
8+
- uses: actions/setup-node@v4
9+
with:
10+
node-version: "lts/*"
11+
- run: |
12+
yarn install --production
13+
if [ -d node_modules/typescript ]; then
14+
echo "Typescript dependency found";
15+
exit 1;
16+
fi

.github/workflows/unitTestsLinux.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ jobs:
1313
nodeVersionOverride: ${{ vars.NODE_VERSION_OVERRIDE }} # default is 'lts/*' and 'lts/-1'
1414
nodeDisableCurrent: ${{ vars.UT_DISABLE_NODE_CURRENT }} # default is falsy
1515

16+
prevent-typescript-dependency:
17+
uses: salesforcecli/github-workflows/.github/workflows/preventTypescriptDep.yml@main
18+
1619
linux-unit-tests:
1720
needs: determine-node-versions
1821
strategy:

0 commit comments

Comments
 (0)