chore(deps): bump the minor-and-patch group across 1 directory with 24 updates #127
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: Build and Test | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [18.x, 20.x] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Setup Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build TypeScript | |
| run: npm run build | |
| - name: Check build artifacts | |
| run: ls -lh dist/ | |
| - name: Run unit tests | |
| run: npx vitest run test/unit | |
| e2e: | |
| runs-on: ubuntu-latest | |
| if: github.ref == 'refs/heads/main' | |
| needs: build | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 20.x | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build TypeScript | |
| run: npm run build | |
| - name: Clone advisory database | |
| run: | | |
| git clone --depth=1 --branch=main \ | |
| https://github.com/github/advisory-database.git \ | |
| external/advisory-database | |
| - name: Run E2E tests | |
| run: npm run test:e2e | |
| env: | |
| ADVISORY_REPO_PATH: ./external/advisory-database | |
| MCP_PORT: '18006' | |
| ADVISORY_API_PORT: '18005' |