Skip to content

Commit

Permalink
ci: add prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
kantord committed Jul 28, 2024
1 parent c2ee925 commit 0524e53
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"rootDir": "./apps/librelingo-web/src"
}
},
"ignorePatterns": ["playwright-report"],
"ignorePatterns": ["playwright-report", "apps/librelingo-web/out"],
"rules": {
"@next/next/no-html-link-for-pages": "off"
}
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Lint (node)
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- name: Install dependencies
run: npm ci
- name: Run lint checks
run: npm run lint
4 changes: 2 additions & 2 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Playwright Tests
on:
push:
branches: [main, master]
branches: [main]
pull_request:
branches: [main, master]
branches: [main]
jobs:
test:
timeout-minutes: 60
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
"e2e:test": "playwright test",
"e2e:ui": "playwright test --ui",
"e2e:report": "playwright show-report",
"lint": "eslint .",
"lint": "npm run lint:eslint && npm run lint:prettier",
"lint:eslint": "eslint .",
"lint:prettier": "npx prettier --check .",
"format": "npx prettier . --write",
"course:build": "./scripts/exportYamlCourse.sh"
},
Expand Down

0 comments on commit 0524e53

Please sign in to comment.