fix: jest 버전, ESLint 통일, setup.yml 오타, private 추가 #8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| workflow_call: | |
| jobs: | |
| ci: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Security audit | |
| run: npm audit --audit-level=high | |
| - name: Lint | |
| run: npm run lint | |
| - name: Test | |
| run: npm test | |
| - name: Package verification | |
| run: | | |
| npx vsce package --no-dependencies | |
| VSIX=$(ls *.vsix) | |
| SIZE=$(stat -c%s "$VSIX" 2>/dev/null || stat -f%z "$VSIX") | |
| echo "Package: $VSIX ($((SIZE / 1024)) KB)" | |
| rm -f "$VSIX" |