mirror of
https://github.com/yamadashy/repomix.git
synced 2025-06-11 00:25:54 +03:00
Merge pull request #630 from yamadashy/chore/lint
Add linting jobs for website client, server, and browser extension
This commit is contained in:
76
.github/workflows/ci.yml
vendored
76
.github/workflows/ci.yml
vendored
@@ -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
|
||||
@@ -105,6 +162,25 @@ jobs:
|
||||
env:
|
||||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
||||
|
||||
test-browser:
|
||||
name: Test 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: Test browser extension
|
||||
run: |
|
||||
cd browser
|
||||
npm run test
|
||||
|
||||
build-and-run:
|
||||
name: Build and run
|
||||
strategy:
|
||||
|
||||
2005
browser/package-lock.json
generated
2005
browser/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -30,10 +30,12 @@
|
||||
"@types/node": "^22.10.2",
|
||||
"@types/webextension-polyfill": "^0.10.7",
|
||||
"@webextension-toolbox/webextension-toolbox": "^7.1.1",
|
||||
"jsdom": "^26.1.0",
|
||||
"secretlint": "^9.3.1",
|
||||
"sharp": "^0.34.1",
|
||||
"tsx": "^4.19.2",
|
||||
"typescript": "^5.8.3"
|
||||
"typescript": "^5.8.3",
|
||||
"vitest": "^1.6.0"
|
||||
},
|
||||
"browserslist": [
|
||||
"last 2 versions, not dead, > 0.2%"
|
||||
|
||||
@@ -1 +1 @@
|
||||
nodejs 22.15.1
|
||||
nodejs 22.16.0
|
||||
|
||||
@@ -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