Skip to content

Commit

Permalink
Merge pull request #1002 from YusukeHirao/features/renovate-settings
Browse files Browse the repository at this point in the history
Set Renovate config
  • Loading branch information
YusukeHirao committed May 9, 2023
2 parents 9d5f9a7 + 11a37ef commit 0db681d
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/renovate.json
@@ -0,0 +1,17 @@
{
"labels": ["Dependencies", "Renovate"],
"packageRules": [
{
"matchDepTypes": ["optionalDependencies"],
"addLabels": ["Dependencies: Optional"]
},
{
"matchDepTypes": ["devDependencies"],
"addLabels": ["Dependencies: Development"]
},
{
"matchDepTypes": ["dependencies"],
"addLabels": ["Dependencies: Production"]
}
]
}
10 changes: 10 additions & 0 deletions .github/workflows/test.yml
Expand Up @@ -106,6 +106,8 @@ jobs:
lint:
needs: dev-setup
runs-on: ${{ matrix.os }}
if: |
!contains(github.event.pull_request.labels.*.name, 'Renovate')
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -133,6 +135,14 @@ jobs:

os-setup:
runs-on: ${{ matrix.os }}

# For PRs from Renovate, update production dependencies only and then run tests.
# For PRs not from Renovate, proceed with the usual setup and tests.
if: |
!contains(github.event.pull_request.labels.*.name, 'Renovate')
||
contains(github.event.pull_request.labels.*.name, 'Dependencies: Production')
strategy:
fail-fast: false
matrix:
Expand Down

0 comments on commit 0db681d

Please sign in to comment.