mirror of
https://github.com/yamadashy/repomix.git
synced 2026-05-30 11:18:53 +02:00
ci: Add linting jobs for website client, server, and browser extension
This commit is contained in:
@@ -47,6 +47,63 @@ jobs:
|
||||
- run: npm ci
|
||||
- run: npm run lint-secretlint
|
||||
|
||||
lint-website-client:
|
||||
name: Lint Website Client
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 10
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version-file: .tool-versions
|
||||
cache: npm
|
||||
- name: Install website client dependencies
|
||||
run: |
|
||||
cd website/client
|
||||
npm ci
|
||||
- name: Lint website client
|
||||
run: |
|
||||
cd website/client
|
||||
npm run lint
|
||||
|
||||
lint-website-server:
|
||||
name: Lint Website Server
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 10
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version-file: .tool-versions
|
||||
cache: npm
|
||||
- name: Install website server dependencies
|
||||
run: |
|
||||
cd website/server
|
||||
npm ci
|
||||
- name: Lint website server
|
||||
run: |
|
||||
cd website/server
|
||||
npm run lint
|
||||
|
||||
lint-browser:
|
||||
name: Lint Browser Extension
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 10
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version-file: .tool-versions
|
||||
cache: npm
|
||||
- name: Install browser extension dependencies
|
||||
run: |
|
||||
cd browser
|
||||
npm ci
|
||||
- name: Lint browser extension
|
||||
run: |
|
||||
cd browser
|
||||
npm run lint
|
||||
|
||||
lint-action:
|
||||
name: Lint GitHub Actions
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
@@ -5,7 +5,8 @@
|
||||
"docs:dev": "vitepress dev",
|
||||
"docs:build": "vitepress build",
|
||||
"docs:preview": "vitepress preview",
|
||||
"lint": "tsc --noEmit"
|
||||
"lint": "npm run lint-tsc",
|
||||
"lint-tsc": "tsc --noEmit"
|
||||
},
|
||||
"dependencies": {
|
||||
"jszip": "^3.10.1",
|
||||
|
||||
@@ -4,7 +4,8 @@
|
||||
"scripts": {
|
||||
"dev": "PORT=8080 tsx watch src/index.ts",
|
||||
"build": "tsc",
|
||||
"lint": "tsc --noEmit",
|
||||
"lint": "npm run lint-tsc",
|
||||
"lint-tsc": "tsc --noEmit",
|
||||
"start": "node dist/index.js",
|
||||
"clean": "rimraf dist",
|
||||
"cloud-deploy": "gcloud builds submit --config=cloudbuild.yaml ."
|
||||
|
||||
Reference in New Issue
Block a user