diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3051dff..031f3a9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -5,19 +5,19 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: [16.x, 18.x, latest] + node-version: [20.x, 24.x] env: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} steps: - - uses: actions/checkout@v3 - + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0 with: node-version: ${{ matrix.node-version }} - run: npm install - name: Run tests - run: npx nyc@latest --reporter=lcov npm test - - uses: codecov/codecov-action@v1 + run: npx nyc@17.1.0 --reporter=lcov npm test + - uses: codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24 # v5.4.3 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..a45fd52 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +24 diff --git a/package.json b/package.json index 802e46e..435909b 100644 --- a/package.json +++ b/package.json @@ -30,5 +30,8 @@ "bugs": { "url": "https://github.com/hughsk/flat/issues" }, - "homepage": "https://github.com/hughsk/flat" + "homepage": "https://github.com/hughsk/flat", + "engines": { + "node": ">=20" + } }