Skip to content

Add tests and coverage using github actions #13

Add tests and coverage using github actions

Add tests and coverage using github actions #13

Workflow file for this run

name: Node.js CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Linting with ESLint
uses: actions/setup-node@v3
with:
node-version: 18.x
- run: npm test
- run: npx lcov-badge2 coverage/lcov.info -o coverage/lcov-report/badge.svg
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: 'coverage/lcov-report'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2