Skip to content

Commit

Permalink
Added workflow to run build and tests automatically (#608)
Browse files Browse the repository at this point in the history
  • Loading branch information
erikyo authored Mar 29, 2024
1 parent 1423f15 commit ee1b763
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Node.js CI

on:
- push
- pull_request

jobs:
build:

runs-on: ${{ matrix.os }}

strategy:
matrix:
node-version: [lts/*, latest]
os: [ubuntu-latest, macos-latest, windows-latest]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

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

- run: npm install

- run: npm run build --if-present

- run: npm run test

0 comments on commit ee1b763

Please sign in to comment.