Generate test coverage report in HTML format too #216
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push, pull_request] | |
jobs: | |
build: | |
name: test Node ${{ matrix.node }} ${{ matrix.os }} | |
timeout-minutes: 25 | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
node: ['14.x', '16.x', '18.x'] | |
os: [ubuntu-latest, windows-latest, macOS-latest] | |
steps: | |
- name: LF | |
run: git config --global core.autocrlf false | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
- name: Use Node ${{ matrix.node }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Install Dependencies | |
run: npm ci | |
- name: Check Prettier | |
run: npm run prettify | |
- name: Check Lint | |
run: npm run lint | |
- name: Test | |
run: npm test |