Swap codecov/codecov-action for qltysh/qlty-action/coverage to publish coverage data to Qlty Cloud. Uses token-based auth (public repo) and uploads lcov.info from the Node 16 matrix run. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
27 lines
621 B
YAML
27 lines
621 B
YAML
name: CI
|
|
on:
|
|
- push
|
|
- pull_request
|
|
jobs:
|
|
test:
|
|
name: Node.js ${{ matrix.node-version }}
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
node-version:
|
|
- 18
|
|
- 16
|
|
- 14
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
- run: npm install
|
|
- run: npm test
|
|
- uses: qltysh/qlty-action/coverage@v2
|
|
if: matrix.node-version == 16
|
|
with:
|
|
token: ${{ secrets.QLTY_COVERAGE_TOKEN }}
|
|
files: coverage/lcov.info
|