.github/workflows/legacy.yml YAML 102 lines View on github.com → Search inside
1name: legacy23on:4  push:5    branches:6      - master7      - develop8      - '4.x'9      - '5.x'10      - '5.0'11    paths-ignore:12      - '*.md'13  pull_request:14    paths-ignore:15      - '*.md'16  workflow_dispatch:17  18permissions:19  contents: read2021# Cancel in progress workflows22# in the scenario where we already had a run going for that PR/branch/tag but then triggered a new run23concurrency:24  group: "${{ github.workflow }} ✨ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}"25  cancel-in-progress: true2627jobs:28  test:29    strategy:30      fail-fast: false31      matrix:32        os: [ubuntu-latest, windows-latest]33        node-version: [16, 17]34        # Node.js release schedule: https://nodejs.org/en/about/releases/3536    name: Node.js ${{ matrix.node-version }} - ${{matrix.os}}3738    runs-on: ${{ matrix.os }}39    steps:40      - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.241        with:42          persist-credentials: false4344      - name: Setup Node.js ${{ matrix.node-version }}45        uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.046        with:47          node-version: ${{ matrix.node-version }}4849      - name: Configure npm loglevel50        run: |51          npm config set loglevel error52        shell: bash5354      - name: Install dependencies55        run: npm install5657      - name: Output Node and NPM versions58        run: |59          echo "Node.js version: $(node -v)"60          echo "NPM version: $(npm -v)"6162      - name: Run tests63        shell: bash64        run: npm run test-ci6566      - name: Upload code coverage67        uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.068        with:69          name: coverage-node-${{ matrix.node-version }}-${{ matrix.os }}70          path: ./coverage/lcov.info71          retention-days: 17273  coverage:74    needs: test75    runs-on: ubuntu-latest76    permissions:77      contents: read78      checks: write79    steps:80      - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.281        with:82          persist-credentials: false8384      - name: Install lcov85        shell: bash86        run: sudo apt-get -y install lcov8788      - name: Collect coverage reports89        uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.190        with:91          path: ./coverage92          pattern: coverage-node-*9394      - name: Merge coverage reports95        shell: bash96        run: find ./coverage -name lcov.info -exec printf '-a %q\n' {} \; | xargs lcov -o ./lcov.info9798      - name: Upload coverage report99        uses: coverallsapp/github-action@5cbfd81b66ca5d10c19b062c04de0199c215fb6e # v2.3.7100        with:101          file: ./lcov.info

Findings

✓ No findings reported for this file.

Get this view in your editor

Same data, no extra tab — call code_get_file + code_get_findings over MCP from Claude/Cursor/Copilot.