Skip to content

Commit

Permalink
fix: scripts 및 ci 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
choisohyun committed Jul 30, 2024
1 parent a544e2a commit 17f7b61
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 24 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@ name: Node.js CI

on:
push:
branches: [ main ]
branches: [main]
pull_request:
branches: [ main ]
branches: [main]

jobs:
build:

runs-on: ubuntu-latest

strategy:
Expand All @@ -20,12 +19,13 @@ jobs:
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run build:all --if-present
- run: npm run test:all --if-present
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- run: npm ci
- run: npm run build:all --if-present
- run: npm run test:all --if-present
- run: npm run lint
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"deploy:all": "npm run deploy --workspaces",
"test:all": "npm run test --workspaces",
"lint": "eslint '**/*.{js,ts,tsx}'",
"lint:fix": "npm run lint --fix",
"lint:fix": "eslint '**/*.{js,ts,tsx}' --fix",
"prettier": "prettier '**/*.{ts,tsx,json,yaml,md}' --check",
"prettier:fix": "prettier '**/*.{ts,tsx,json,yaml,md}' --write"
},
Expand Down
2 changes: 0 additions & 2 deletions packages/analysis-engine/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
"scripts": {
"build": "rollup -c && tsc -d --emitDeclarationOnly --noEmit false --declarationDir dist",
"start": "sh -c 'node -e \"require(\\\"./dist/index.js\\\").getMockData(\\\"$0\\\")\"'",
"lint": "eslint src --ext ts",
"lint:fix": "eslint src --ext ts --fix",
"check:eslint": "eslint --ignore-path .gitignore --max-warnings 0 \"**/*.{js,ts}\"",
"check:vulnerabilities": "npm audit --omit=dev",
"test": "jest",
Expand Down
6 changes: 0 additions & 6 deletions packages/view/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,6 @@
"test": "jest",
"test:e2e": "playwright test"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"repository": {
"type": "git",
"url": "git+https://github.com/githru/githru-vscode-ext.git"
Expand Down
4 changes: 1 addition & 3 deletions packages/vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,7 @@
"package": "webpack --mode production --devtool hidden-source-map && vsce package --no-dependencies",
"compile-tests": "tsc -p . --outDir out",
"watch-tests": "tsc -p . -w --outDir out",
"pretest": "npm run compile-tests && npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"lint:fix": "eslint src --ext ts --fix",
"pretest": "npm run compile-tests && npm run compile",
"test": "node ./out/test/runTest.js"
},
"dependencies": {
Expand Down

0 comments on commit 17f7b61

Please sign in to comment.