Skip to content

Commit 7b1ff7e

Browse files
authored
Lint the Renovate config in .github repo CI (#14)
1 parent 1f4d88e commit 7b1ff7e

3 files changed

Lines changed: 34 additions & 4 deletions

File tree

.github/workflows/lint.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Lint
2+
3+
on:
4+
pull_request:
5+
merge_group:
6+
7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
9+
cancel-in-progress: true
10+
11+
jobs:
12+
renovate:
13+
name: Validate renovate config
14+
runs-on: ubuntu-24.04
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
18+
19+
- name: Validate renovate config
20+
run: |
21+
npm install --global renovate
22+
if ! renovate-config-validator; then
23+
echo ''
24+
echo ''
25+
echo 'ℹ️ ℹ️ ℹ️'
26+
echo 'Please fix the above errors locally for the check to pass.'
27+
echo 'If you don’t see them, try merging target branch into yours.'
28+
echo 'ℹ️ ℹ️ ℹ️'
29+
exit 1
30+
fi

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
MIT License
1+
# MIT License
22

33
Copyright (c) 2021 HASH
44

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
## Welcome to HASH 👋
1+
# Welcome to HASH 👋
22

33
This is HASH's default [community health repo](https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/creating-a-default-community-health-file).
44

5-
6-
### What is this
5+
## What is this
76

87
This repo will contain default files for all HASH OSS repos and will be extended to include:
8+
99
- Basic issue templates, covering Bug Reports and Feature Requests
1010
- A PR template
1111
- Our contributions guide: `CONTRIBUTING.md`

0 commit comments

Comments
 (0)