Skip to content

Commit

Permalink
feat(ci): add ts linting and prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasMrqes committed Oct 25, 2024
1 parent fdaa34f commit 7e1f616
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 4 deletions.
30 changes: 27 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ jobs:
run: |
git diff --exit-code ./manifests
lint:
name: Lint
lint-go:
name: Lint Go
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -73,5 +73,29 @@ jobs:
version: v1.55
args: --timeout=5m

lint-ts:
name: Lint TS
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Run install
uses: borales/actions-yarn@v4
with:
cmd: install
dir: ui
- name: Run eslint
uses: borales/actions-yarn@v5
with:
cmd: lint
dir: ui
- name: Run prettier
uses: borales/actions-yarn@v5
with:
cmd: format-check
dir: ui

build-and-push:
uses: ./.github/workflows/build-and-push.yaml
uses: ./.github/workflows/build-and-push.yaml
2 changes: 1 addition & 1 deletion ui/eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default [
},
settings: {
react: {
version: 'detect', // You can add this if you get a warning about the React version when you lint
version: 'detect',
},
},
},
Expand Down

0 comments on commit 7e1f616

Please sign in to comment.