Skip to content

ci: matrix for cli tests #231

ci: matrix for cli tests

ci: matrix for cli tests #231

Workflow file for this run

name: CI
on: push
jobs:
test:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
node:
- '18'
- '16'
package:
- base
- core
- csvw
- formats
- ftp
- graph-store
- rdf
- sparql
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- run: npm install
- run: npx c8 --all --src packages/${{ matrix.package }} -x "packages/!(${{ matrix.package }})" --reporter lcovonly --reporter text wsrun --no-prefix -p barnard59-${{ matrix.package }} -c test
- name: Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: barnard59-${{ matrix.package }}
test-cli:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
node:
- '18'
- '16'
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- run: npm install
- run: npx c8 --all --src packages/cli -x "packages/!(cli)" --reporter lcovonly --reporter text wsrun --no-prefix -p barnard59 -c test
- name: Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: barnard59-cli
lint:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- run: npm ci
- run: npm run lint