Skip to content
Myr

ci: updated github actions ci workflow (#6314)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Phillip Barta · committed by GitHub · parent 511d9df · Browse files · 2 files+54 added−58 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+54 added−58 removed

  • other:+54 added−58 removed

2 files+54 added−58 removed

modified:.github/workflows/ci.yml+28 added-30 removed
modified:.github/workflows/legacy.yml+26 added-28 removed
12 unmodified lines
13 pull_request:14 paths-ignore:15 - '*.md'1617permissions:18 contents: read1920# Cancel in progress workflows21# in the scenario where we already had a run going for that PR/branch/tag but then triggered a new run22concurrency:23 group: "${{ github.workflow }} ✨ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}"
35 unmodified lines
59 echo "NPM version: $(npm -v)"6061 - name: Run tests62 shell: bash60 run: |61 npm run test-ci63 run: npm run test-ci62 cp coverage/lcov.info "coverage/${{ matrix.node-version }}.lcov"6464 - name: Collect code coverage65 run: |66 mv ./coverage "./${{ matrix.node-version }}"67 mkdir ./coverage68 mv "./${{ matrix.node-version }}" "./coverage/${{ matrix.node-version }}"6965 - name: Upload code coverage71 uses: actions/upload-artifact@v366 uses: actions/upload-artifact@v467 with:73 name: coverage74 path: ./coverage68 name: coverage-node-${{ matrix.node-version }}-${{ matrix.os }}69 path: ./coverage/lcov.info70 retention-days: 17172 coverage:73 needs: test74 runs-on: ubuntu-latest75 permissions:76 contents: read77 checks: write78 steps:81 - uses: actions/checkout@v479 - uses: actions/checkout@v48083 - name: Install lcov84 shell: bash85 run: sudo apt-get -y install lcov81 - name: Install lcov82 shell: bash83 run: sudo apt-get -y install lcov8487 - name: Collect coverage reports88 uses: actions/download-artifact@v389 with:90 name: coverage91 path: ./coverage85 - name: Collect coverage reports86 uses: actions/download-artifact@v487 with:88 path: ./coverage89 pattern: coverage-node-*9093 - name: Merge coverage reports94 shell: bash95 run: find ./coverage -name lcov.info -exec printf '-a %q\n' {} \; | xargs lcov -o ./coverage/lcov.info91 - name: Merge coverage reports92 shell: bash93 run: find ./coverage -name lcov.info -exec printf '-a %q\n' {} \; | xargs lcov -o ./lcov.info9497 - name: Upload coverage report98 uses: coverallsapp/github-action@master99 with:100 github-token: ${{ secrets.GITHUB_TOKEN }}95 - name: Upload coverage report96 uses: coverallsapp/github-action@v297 with:98 file: ./lcov.info