Skip to content

Commit

Permalink
Add GH workflow for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Sangervasi committed Feb 19, 2023
1 parent 67da106 commit 07731f8
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Node.js CI

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
tests:
runs-on: ubuntu-latest

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

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- run: npm ci
- run: npm run build

- name: unit
run: npm test

- name: test-packages
run: npm run test-packages

0 comments on commit 07731f8

Please sign in to comment.