Skip to content

Commit 03f5daa

Browse files
CLOUDP-286235: GH Actions
1 parent 30a54e7 commit 03f5daa

File tree

3 files changed

+19
-6
lines changed

3 files changed

+19
-6
lines changed

.github/workflows/code-health-tools.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,23 @@ jobs:
7979
echo "::add-matcher::.github/actionlint-matcher.json"
8080
${{ steps.get_actionlint.outputs.executable }} -color
8181
shell: bash
82+
- name: Setup Node
83+
uses: actions/setup-node@v4
84+
with:
85+
node-version: '20.x'
86+
- name: Install npm dependencies
87+
uses: nick-fields/retry@v3
88+
with:
89+
timeout_minutes: 10
90+
max_attempts: 3
91+
command: npm install
92+
- name: Run Prettier
93+
run: |
94+
npm run format-check
95+
- name: Run ESLint for /tools
96+
run: |
97+
npm run lint-tools
98+
8299
e2e-tests:
83100
needs: build
84101
runs-on: ubuntu-latest

eslint.config.mjs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,4 @@ export default [
1111
sourceType: 'module',
1212
},
1313
},
14-
{
15-
rules: {
16-
'no-unused-exports': 'off',
17-
},
18-
},
1914
];

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"description": "MongoDB repository with OpenAPI specification",
44
"scripts": {
55
"format": "npx prettier . --write",
6-
"lint-tools": "npx eslint 'tools/**'"
6+
"format-check": "npx prettier . --check",
7+
"lint-tools": "npx eslint tools"
78
},
89
"dependencies": {
910
"openapi-to-postmanv2": "4.24.0"

0 commit comments

Comments
 (0)