Skip to content

chore: swap dependabot for renovate #3678

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ The goal of this documentation is to provide an outline for the GitHub goodness
├── --support-request.md
⎪ PULL_REQUEST_TEMPLATE.md
⎪ CONTRIBUTING.md
⎪ dependabot.yml
```

## Actions
Expand Down
52 changes: 0 additions & 52 deletions .github/dependabot.yml

This file was deleted.

35 changes: 35 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"baseBranches": ["main", "spectrum-two"],
"extends": [
"config:recommended",
":widenPeerDependencies",
"group:githubArtifactActions",
"group:vite"
],
"labels": ["dependencies", "skip_vrt", "ready-for-review"],
"packageRules": [
{
"groupName": "storybook ecosystem",
"matchPackageNames": ["storybook", "@storybook/*", "@types/storybook*"]
},
{
"groupName": "commitlint ecosystem",
"matchPackageNames": ["commitlint", "@commitlint/*"]
},
{
"groupName": "nx ecosystem",
"matchPackageNames": ["nx", "@nx/*"]
},
{
"groupName": "postcss ecosystem",
"matchPackageNames": ["postcss", "postcss-**"]
},
{
"groupName": "stylelint ecosystem",
"matchPackageNames": ["stylelint", "stylelint-**"]
}
],
"rebaseWhen": "behind-base-branch",
"reviewers": ["team:spectrum-css-maintainers"]
}
142 changes: 71 additions & 71 deletions .github/workflows/vrt.yml
Original file line number Diff line number Diff line change
@@ -1,84 +1,84 @@
name: Visual regression testing

on:
push:
branches:
- main
- "!changeset-release/**"
- "!dependabot/**"
workflow_dispatch:
workflow_call:
inputs:
skip:
description: "Skip running VRT"
required: false
type: boolean
default: false
outputs:
storybook-url:
description: "URL of the published Storybook"
value: ${{ jobs.vrt.outputs.storybook-url }}
push:
branches:
- main
- "!changeset-release/**"
- "!renovate/**"
workflow_dispatch:
workflow_call:
inputs:
skip:
description: "Skip running VRT"
required: false
type: boolean
default: false
outputs:
storybook-url:
description: "URL of the published Storybook"
value: ${{ jobs.vrt.outputs.storybook-url }}

permissions:
contents: read
pull-requests: write
contents: read
pull-requests: write

jobs:
vrt:
if: ${{!startsWith(github.ref, 'refs/heads/dependabot/') && !startsWith(github.ref, 'refs/heads/changeset-release/') }}
name: Chromatic
runs-on: ubuntu-latest
timeout-minutes: 20
outputs:
storybook-url: ${{ steps.chromatic.outputs.storybookUrl != 'undefined' && steps.chromatic.outputs.storybookUrl || '' }}
steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 0
vrt:
if: ${{!startsWith(github.ref, 'refs/heads/renovate/') && !startsWith(github.ref, 'refs/heads/changeset-release/') }}
name: Chromatic
runs-on: ubuntu-latest
timeout-minutes: 20
outputs:
storybook-url: ${{ steps.chromatic.outputs.storybookUrl != 'undefined' && steps.chromatic.outputs.storybookUrl || '' }}
steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Use Node LTS version
uses: actions/setup-node@v4
with:
node-version: 20
cache: yarn
- name: Use Node LTS version
uses: actions/setup-node@v4
with:
node-version: 20
cache: yarn

- name: Enable Corepack
run: corepack enable
- name: Enable Corepack
run: corepack enable

## --- YARN CACHE --- ##
- name: Check for cached dependencies
continue-on-error: true
id: cache-dependencies
uses: actions/cache@v4
with:
path: |
.cache/yarn
node_modules
key: ubuntu-latest-node20-${{ hashFiles('yarn.lock') }}
## --- YARN CACHE --- ##
- name: Check for cached dependencies
continue-on-error: true
id: cache-dependencies
uses: actions/cache@v4
with:
path: |
.cache/yarn
node_modules
key: ubuntu-latest-node20-${{ hashFiles('yarn.lock') }}

## --- INSTALL --- ##
- name: Install dependencies
shell: bash
run: yarn install --immutable
## --- INSTALL --- ##
- name: Install dependencies
shell: bash
run: yarn install --immutable

- name: Generate metadata assets
shell: bash
run: yarn report
- name: Generate metadata assets
shell: bash
run: yarn report

- name: Publish to Chromatic
id: chromatic
uses: chromaui/action@latest
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
buildScriptName: ci:storybook
storybookConfigDir: .storybook
storybookBaseDir: .storybook
exitOnceUploaded: true
onlyChanged: true
traceChanged: true
untraced: ".github/* plugins/stylelint-*/* tools/* .changeset/*"
diagnostics: true
autoAcceptChanges: "main"
# Lets VRT pass without running so as not to waste snapshots
skip: ${{ inputs.skip }}
- name: Publish to Chromatic
id: chromatic
uses: chromaui/action@latest
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
buildScriptName: ci:storybook
storybookConfigDir: .storybook
storybookBaseDir: .storybook
exitOnceUploaded: true
onlyChanged: true
traceChanged: true
untraced: ".github/* plugins/stylelint-*/* tools/* .changeset/*"
diagnostics: true
autoAcceptChanges: "main"
# Lets VRT pass without running so as not to waste snapshots
skip: ${{ inputs.skip }}
21 changes: 12 additions & 9 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,11 @@
"clean": {
"cache": true,
"executor": "nx:run-commands",
"inputs": ["{projectRoot}/dist/*.css*", "{projectRoot}/dist/**/*.css*", { "externalDependencies": ["rimraf"] }],
"inputs": [
"{projectRoot}/dist/*.css*",
"{projectRoot}/dist/**/*.css*",
{ "externalDependencies": ["rimraf"] }
],
"options": {
"commands": ["rimraf {projectRoot}/dist/*.css* {projectRoot}/dist/**/"]
},
Expand Down Expand Up @@ -175,12 +179,7 @@
"report": {
"cache": true,
"executor": "nx:run-commands",
"inputs": [
"styles",
"postcss",
"stylelint",
"reporter"
],
"inputs": ["styles", "postcss", "stylelint", "reporter"],
"options": {
"commands": [
"cross-env NODE_OPTIONS=\"--no-warnings\" node -e 'require(\"./tasks/component-reporter.js\").default()'"
Expand All @@ -203,12 +202,16 @@
},
"scope": {
"commands": [
"chromatic --build-script-name build --junit-report --only-story-names --skip '@(changeset-release/**|dependabot/**)'"
"chromatic --build-script-name build --junit-report --only-story-names --skip '@(changeset-release/**|renovate/**)'"
]
}
},
"executor": "nx:run-commands",
"inputs": ["styles", "stories", { "externalDependencies": ["chromatic"] }],
"inputs": [
"styles",
"stories",
{ "externalDependencies": ["chromatic"] }
],
"options": {
"commands": [
"chromatic --only-changed --build-script-name build --junit-report"
Expand Down
Loading