2022-08-14 13:01:51 +00:00
|
|
|
name: Node CI
|
|
|
|
|
|
|
|
on: [pull_request]
|
2023-12-24 00:48:27 +00:00
|
|
|
# To be able to write in the PR, we need write permission.
|
|
|
|
permissions:
|
|
|
|
pull-requests: write
|
2022-08-14 13:01:51 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Use Node.js
|
|
|
|
uses: actions/setup-node@v3
|
|
|
|
with:
|
2023-12-09 16:17:10 +00:00
|
|
|
node-version: 20.x
|
2022-08-14 13:01:51 +00:00
|
|
|
- name: npm install, test and lint
|
|
|
|
run: |
|
|
|
|
npm ci
|
|
|
|
npm run build --workspace=packages/svgcanvas
|
|
|
|
npm run lint
|
|
|
|
npm run test
|
|
|
|
env:
|
|
|
|
CI: true
|
2024-01-17 14:19:37 +00:00
|
|
|
# - name: Report NYC coverage - removed for now
|
|
|
|
# uses: sidx1024/report-nyc-coverage-github-action@v1.2.6
|
|
|
|
# with:
|
|
|
|
# # Path to coverage file generated by "nyc report".
|
|
|
|
# coverage_file: "coverage/coverage-summary.json"
|
|
|
|
# base_coverage_file: "coverage/coverage-summary.json"
|
|
|
|
# comment_template_file: ".github/comment-template.md"
|
2022-08-14 13:01:51 +00:00
|
|
|
|
|
|
|
|