Skip to content

Commit a418ccd

Browse files
Adopt better practices for Renovate (#15)
* Move renovate.json to .github and adopt better practices Using my own gist at https://gist.github.com/paulo-ferraz-oliveira/68e04915037d1e78eb815a90f491f97d * Allow Renovate to complain less
1 parent af8313e commit a418ccd

File tree

6 files changed

+66
-14
lines changed

6 files changed

+66
-14
lines changed

.github/renovate.json

+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": [
4+
"config:best-practices"
5+
],
6+
"packageRules": [
7+
{
8+
"matchFileNames": [
9+
".github/**/*.yml",
10+
".tool-versions"
11+
],
12+
"groupName": "dev tools"
13+
},
14+
{
15+
"matchFileNames": [
16+
"rebar.config"
17+
],
18+
"groupName": "rebar.config deps"
19+
},
20+
{
21+
"matchFileNames": [
22+
"package.json",
23+
".nvmrc"
24+
],
25+
"groupName": "package.json + .nvmrc deps"
26+
},
27+
{
28+
"matchPackagePrefixes": [
29+
"minimum_otp_vsn"
30+
],
31+
"enabled": false
32+
}
33+
],
34+
"customManagers": [
35+
{
36+
"description": "Match versions (per datasource and depName) in .github/**/*.yml",
37+
"customType": "regex",
38+
"fileMatch": [
39+
".github/.*/.*\\.yml"
40+
],
41+
"matchStrings": [
42+
"# renovate datasource: (?<datasource>[^,]+), depName: (?<depName>[^\\n]+)\\n.+?(?<currentValue>v?\\d+(\\.\\d+(\\.\\d+)?)?)\\n"
43+
]
44+
},
45+
{
46+
"description": "Match versions in rebar.config",
47+
"customType": "regex",
48+
"fileMatch": [
49+
"rebar.config"
50+
],
51+
"datasourceTemplate": "hex",
52+
"matchStrings": [
53+
"{(?<depName>[^,]+), \"(?<currentValue>\\d+\\.\\d+(\\.\\d+)?)\""
54+
],
55+
"versioningTemplate": "semver"
56+
}
57+
]
58+
}

.github/workflows/lint.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ jobs:
77
build:
88
name: Lint
99

10-
runs-on: ubuntu-latest
10+
runs-on: ubuntu-22.04
1111

1212
steps:
1313
- name: Checkout
14-
uses: actions/checkout@v4
14+
uses: actions/checkout@v4.1.6
1515

1616
- name: Create dist
1717
run: |

.github/workflows/macos-ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ jobs:
77
macos-ci:
88
name: MacOS CI
99

10-
runs-on: macos-latest
10+
runs-on: macos-14
1111

1212
steps:
1313
- name: Checkout
14-
uses: actions/checkout@v4
14+
uses: actions/checkout@v4.1.6
1515

1616
- id: tool-versions
1717
name: Parse .tool-versions

.github/workflows/ubuntu-ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ jobs:
77
ubuntu-ci:
88
name: Ubuntu CI
99

10-
runs-on: ubuntu-latest
10+
runs-on: ubuntu-22.04
1111

1212
steps:
1313
- name: Checkout
14-
uses: actions/checkout@v4
14+
uses: actions/checkout@v4.1.6
1515

1616
- id: tool-versions
1717
name: Parse .tool-versions

.github/workflows/windows-ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ jobs:
77
windows-ci:
88
name: Windows CI
99

10-
runs-on: windows-latest
10+
runs-on: windows-2022
1111

1212
steps:
1313
- name: Checkout
14-
uses: actions/checkout@v4
14+
uses: actions/checkout@v4.1.6
1515

1616
- id: tool-versions
1717
name: Parse .tool-versions

renovate.json

-6
This file was deleted.

0 commit comments

Comments
 (0)