chore(.gitignore): remove public directory from .gitignore #2
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, develop] | |
| pull_request: | |
| branches: [main, develop] | |
| jobs: | |
| test: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| node-version: [18, 20] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v2 | |
| with: | |
| version: latest | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Lint code | |
| run: pnpm run lint | |
| - name: Compile TypeScript | |
| run: pnpm run compile | |
| - name: Run tests | |
| run: pnpm run test | |
| continue-on-error: true # Allow tests to fail for now | |
| - name: Package extension | |
| run: pnpm run package | |
| - name: Upload package artifact | |
| if: matrix.os == 'ubuntu-latest' && matrix.node-version == '18' | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: vscode-extension-ci | |
| path: "*.vsix" | |
| retention-days: 7 | |
| quality: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "18" | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v2 | |
| with: | |
| version: latest | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Run lint with fix check | |
| run: | | |
| pnpm run lint | |
| # Check if lint fix would make changes | |
| pnpm run lint:fix | |
| if [ -n "$(git diff --name-only)" ]; then | |
| echo "Code style issues found. Please run 'pnpm run lint:fix' and commit the changes." | |
| git diff | |
| exit 1 | |
| fi | |
| - name: Check TypeScript compilation | |
| run: pnpm run compile | |
| - name: Verify package.json | |
| run: | | |
| node -e " | |
| const pkg = require('./package.json'); | |
| if (!pkg.publisher || pkg.publisher === 'your-publisher-name') { | |
| console.error('Please update the publisher field in package.json'); | |
| process.exit(1); | |
| } | |
| if (!pkg.repository || pkg.repository.url.includes('your-username')) { | |
| console.error('Please update the repository field in package.json'); | |
| process.exit(1); | |
| } | |
| console.log('package.json validation passed'); | |
| " |