diff --git a/.github/workflows/npm-test.yml b/.github/workflows/npm-test.yml new file mode 100644 index 0000000..259b860 --- /dev/null +++ b/.github/workflows/npm-test.yml @@ -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 diff --git a/package.json b/package.json index 0f00266..6002c4c 100644 --- a/package.json +++ b/package.json @@ -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",