Skip to content

Commit

Permalink
Merge pull request #12 from gemini-testing/sp.ci
Browse files Browse the repository at this point in the history
chore: add CI for unit tests
  • Loading branch information
sipayRT authored Mar 19, 2024
2 parents cdc2ac1 + fc91a56 commit d7d4448
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
26 changes: 26 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Node.js CI

on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x, 18.x, 20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- run: npm ci
- run: npm test
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"release": "standard-version"
},
"engines": {
"node": ">= 8.0.0"
"node": ">= 16.0.0"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit d7d4448

Please sign in to comment.