Skip to content

Commit

Permalink
chore: Configure Renovate (#423)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Hiroki Osame <hiroki.osame@gmail.com>
  • Loading branch information
renovate[bot] and privatenumber authored Nov 30, 2023
1 parent ddc7da9 commit c988ee6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"enabledManagers": ["nvm"]
}
4 changes: 2 additions & 2 deletions tests/utils/node-versions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down

0 comments on commit c988ee6

Please sign in to comment.