Skip to content

Commit

Permalink
Fix code check
Browse files Browse the repository at this point in the history
  • Loading branch information
horttanainen committed Apr 11, 2024
1 parent c24d7f5 commit d2b3bc5
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
7 changes: 7 additions & 0 deletions .github/actions/code_check/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,15 @@ runs:
- name: Lint web
working-directory: ./web
shell: bash
run: npm ci
run: npm run lint
- name: Lint localizations
working-directory: ./scripts
shell: bash
run: npm ci
run: npm run lint
- name: Lint playwright
working-directory: ./playwright
shell: bash
run: npm ci
run: npm run lint
2 changes: 0 additions & 2 deletions .github/workflows/build_test_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ jobs:
with:
node-version: v20.11.0
cache: npm
- name: npm install
run: npm ci
- name: Code check
uses: ./.github/actions/code_check
localization_check_untuva:
Expand Down
2 changes: 1 addition & 1 deletion scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"xlsx": "https://cdn.sheetjs.com/xlsx-0.20.1/xlsx-0.20.1.tgz"
},
"scripts": {
"lint": "tsc && eslint *.ts",
"lint": "tsc && eslint *.ts && npm run localizations list-missing untuva",
"localizations": "node --no-warnings --loader @swc-node/register/esm localizations.ts"
}
}
2 changes: 1 addition & 1 deletion web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"dev": "vite --host",
"build": "tsc && vite build",
"build:ci": "tsc && vite build --mode CI",
"lint": "tsc --noEmit && eslint src/**/*.ts src/**/*.tsx && cd ../scripts && npm run localizations list-missing untuva",
"lint": "tsc --noEmit && eslint src/**/*.ts src/**/*.tsx",
"lint:fix": "eslint --fix src/**/*.ts src/**/*.tsx",
"test": "vitest",
"test:watch": "vitest watch"
Expand Down

0 comments on commit d2b3bc5

Please sign in to comment.