diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..48eb521 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,32 @@ +name: ci + +permissions: + contents: read + +on: + push: + pull_request: + branches: [ main ] + +jobs: + build: + name: build (node v${{ matrix.node }}) + + runs-on: macos-latest + + strategy: + fail-fast: false + matrix: + node: [ 18, 20, 22 ] + + steps: + - name: checkout + uses: actions/checkout@v4 + + - name: setup node + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node }} + + - run: npm install + - run: npm test diff --git a/.node-version b/.node-version new file mode 100644 index 0000000..3c03207 --- /dev/null +++ b/.node-version @@ -0,0 +1 @@ +18 diff --git a/package.json b/package.json index 1f735da..88b2605 100644 --- a/package.json +++ b/package.json @@ -11,11 +11,11 @@ "fs-temp": "^1.2.1" }, "devDependencies": { - "mocha": "^7.2.0", - "standard": "^15.0.1", - "ts-readme-generator": "^0.7.3" + "mocha": "^10.7.3", + "standard": "^17.1.0", + "ts-readme-generator": "^0.7.4" }, "engines": { - "node": ">=8.10.0" + "node": ">=18" } }