Skip to content

Commit

Permalink
gh-actions: Add GH action to run a lint check
Browse files Browse the repository at this point in the history
* Introduce a Github action to run a lint check.

Signed-off-by: Elena Zioga <elena@arrikto.com>
  • Loading branch information
elenzio9 committed Nov 29, 2022
1 parent a1c85d0 commit 0b342e3
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .github/workflows/test-node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,21 @@ jobs:
run: |
cd pkg/new-ui/v1beta1/frontend
npm run test:prod
lint-kwa-code:
name: Lint katib web app
runs-on: ubuntu-latest

steps:
- name: Check out code
- uses: actions/checkout@v3

- name: Setup Node
- uses: actions/setup-node@v3
with:
node-version: 12.18.1

- name: Lint katib web app
run: |
cd pkg/new-ui/v1beta1/frontend
npm run lint-check
3 changes: 2 additions & 1 deletion pkg/new-ui/v1beta1/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"copyLibAssets": "cp -r ./node_modules/kubeflow/assets/* ./src/assets/",
"test": "ng test",
"test:prod": "ng test --browsers=ChromeHeadless --watch=false",
"lint": "ng lint",
"lint-check": "ng lint",
"lint": "ng lint --fix",
"format:check": "prettier --check 'src/**/*.{jsx,js,ts,html,scss,css}' || node scripts/check-format-error.js",
"format:write": "prettier --write 'src/**/*.{jsx,js,ts,html,scss,css}'",
"e2e": "ng e2e"
Expand Down

0 comments on commit 0b342e3

Please sign in to comment.