Skip to content

Commit

Permalink
build: create npm-test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
learosema committed Sep 24, 2024
1 parent a0dd07d commit c727909
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/npm-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages

name: Node Tests

on: [push]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm test
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
"description": "Sissi stands for `Simple Static Site` and is a configuration-free static-site generator for a minimalistic build step.",
"main": "index.js",
"type": "module",
"engines": {
"node": ">=20"
},
"scripts": {
"test": "node --test",
"dev": "node ./src/cli dev",
Expand Down

0 comments on commit c727909

Please sign in to comment.