Skip to content

ci: demo github actions nodejs workflow #10

ci: demo github actions nodejs workflow

ci: demo github actions nodejs workflow #10

Workflow file for this run

name: ci
on: [pull_request]
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest]
node-version: [14.x, 16.x, 18.x, 20.x]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: ${{ matrix.os }} / Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: npm install, build, and test
run: |
sudo apt install -y --no-install-recommends graphviz
npm i -g npm@9
npm ci
npm run test
npm run debug
npm run generate
- uses: codecov/codecov-action@v1
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '16.x'
with:
file: ./coverage/coverage.lcov
name: codecov-umbrella
fail_ci_if_error: false