Skip to content

Add CI through GitHub Actions #1

Add CI through GitHub Actions

Add CI through GitHub Actions #1

Workflow file for this run

name: CI
on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
jobs:
build:
runs-on: windows-latest
strategy:
matrix:
node-version: [16.x]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Run tests with coverage
run: npm test
- name: Upload coverage report
uses: actions/upload-artifact@v3
with:
name: coverage-report
path: coverage