diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 52478159..16fa285f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,10 +14,10 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Use Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' @@ -48,7 +48,7 @@ jobs: uses: actions/cache@v3 with: path: ${{ env.NVE_CACHE }} - key: ${{ runner.os }}-nodejs-${{ hashFiles('tests/utils/node-versions.ts') }} + key: ${{ runner.os }}-nodejs-${{ hashFiles('.nvmrc') }}-${{ hashFiles('tests/utils/node-versions.ts') }} restore-keys: ${{ runner.os }}-nodejs- - name: Test diff --git a/renovate.json b/renovate.json new file mode 100644 index 00000000..0a2ccc99 --- /dev/null +++ b/renovate.json @@ -0,0 +1,4 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "enabledManagers": ["nvm"] +} diff --git a/tests/utils/node-versions.ts b/tests/utils/node-versions.ts index 45a8608d..f73725b2 100644 --- a/tests/utils/node-versions.ts +++ b/tests/utils/node-versions.ts @@ -6,14 +6,14 @@ const latestMajor = (version: string) => (process.env.CI ? version : version.split('.')[0]); export const nodeVersions = [ - latestMajor('21.2.0'), - '20.0', + process.version, ...( ( process.env.CI && process.platform !== 'win32' ) ? [ + '21.0.0', latestMajor('20.10.0'), '20.0.0', latestMajor('18.19.0'),