Skip to content

Commit

Permalink
CLOUDP-286235: GH Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
lovisaberggren committed Nov 22, 2024
1 parent 30a54e7 commit 03f5daa
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 6 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/code-health-tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,23 @@ jobs:
echo "::add-matcher::.github/actionlint-matcher.json"
${{ steps.get_actionlint.outputs.executable }} -color
shell: bash
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20.x'
- name: Install npm dependencies
uses: nick-fields/retry@v3
with:
timeout_minutes: 10
max_attempts: 3
command: npm install
- name: Run Prettier
run: |
npm run format-check
- name: Run ESLint for /tools
run: |
npm run lint-tools
e2e-tests:
needs: build
runs-on: ubuntu-latest
Expand Down
5 changes: 0 additions & 5 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,4 @@ export default [
sourceType: 'module',
},
},
{
rules: {
'no-unused-exports': 'off',
},
},
];
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"description": "MongoDB repository with OpenAPI specification",
"scripts": {
"format": "npx prettier . --write",
"lint-tools": "npx eslint 'tools/**'"
"format-check": "npx prettier . --check",
"lint-tools": "npx eslint tools"
},
"dependencies": {
"openapi-to-postmanv2": "4.24.0"
Expand Down

0 comments on commit 03f5daa

Please sign in to comment.