Skip to content

Commit

Permalink
add coverage workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
wuon committed Dec 31, 2023
1 parent c338ee6 commit 087b0f2
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Tests + Coverage

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x, 18.x]

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: npm install

- name: Run the tests
run: npm run test -- --coverage

0 comments on commit 087b0f2

Please sign in to comment.