Skip to content

Commit be2f3b8

Browse files
Merge pull request #155 from contentstack/fix/DX-1958
fix failing test case and enabled test command in workflow
2 parents 37a9609 + 317ab32 commit be2f3b8

File tree

5 files changed

+2954
-1174
lines changed

5 files changed

+2954
-1174
lines changed

.eslintrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"rules": {
77
"unicorn/prefer-module": "off",
88
"unicorn/no-abusive-eslint-disable": "off",
9-
"@typescript-eslint/no-use-before-define": "off"
9+
"@typescript-eslint/no-use-before-define": "off",
10+
"node/no-missing-import": "off"
1011
}
1112
}

.github/workflows/node.js.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,12 @@ jobs:
2525
node-version: ${{ matrix.node-version }}
2626
- run: npm ci
2727
- run: npm run build --if-present
28-
# - run: npm test
28+
- run: npm i -g @contentstack/cli
29+
- run: csdx config:set:region ${{secrets.REGION}}
30+
- run: csdx auth:tokens:add -a ${{ secrets.TOKEN_ALIAS }} --delivery -k ${{ secrets.APIKEY }} --token ${{ secrets.DELIVERYKEY }} -e ${{ secrets.ENVIRONMENT }}
31+
- run: npm run prepack
32+
- run: csdx plugins:link
33+
- run: npm test
34+
env:
35+
TOKEN_ALIAS: ${{ secrets.TOKEN_ALIAS }}
36+
- run: csdx plugins:unlink

0 commit comments

Comments
 (0)