Skip to content

Commit

Permalink
chore(ui): separate renovate and CI/CD (#476)
Browse files Browse the repository at this point in the history
* chore(renovate): dedicate a group for UI dependencies

* chore(ci): dedicate CI for UI
  • Loading branch information
corrieriluca authored Jan 9, 2025
1 parent 0eedd74 commit 2006675
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 29 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/ci-frontend.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Continuous Integration for Frontend

on:
push:
branches:
- main
pull_request:
branches:
- main
paths:
- "ui/**"

env:
NODE_VERSION: 22

jobs:
build:
name: Build UI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "${{ env.NODE_VERSION }}"
- name: Run install
uses: borales/actions-yarn@v5
with:
cmd: install
dir: ui
- name: Run build
uses: borales/actions-yarn@v5
with:
cmd: build
dir: ui

lint:
name: Lint TS
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "${{ env.NODE_VERSION }}"
- name: Run install
uses: borales/actions-yarn@v5
with:
cmd: install
dir: ui
- name: Run eslint
uses: borales/actions-yarn@v5
with:
cmd: lint
dir: ui
- name: Run prettier
uses: borales/actions-yarn@v5
with:
cmd: format-check
dir: ui
24 changes: 0 additions & 24 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,29 +73,5 @@ jobs:
version: v1.63
args: --timeout=5m

lint-ts:
name: Lint TS
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Run install
uses: borales/actions-yarn@v5
with:
cmd: install
dir: ui
- name: Run eslint
uses: borales/actions-yarn@v5
with:
cmd: lint
dir: ui
- name: Run prettier
uses: borales/actions-yarn@v5
with:
cmd: format-check
dir: ui

build-and-push:
uses: ./.github/workflows/build-and-push.yaml
25 changes: 20 additions & 5 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,34 @@
],
"packageRules": [
{
"matchUpdateTypes": ["patch"],
"matchFileNames": [
"ui/**"
],
"groupName": "ui dependencies",
"groupSlug": "ui-dependencies"
},
{
"matchUpdateTypes": [
"patch"
],
"groupName": "all patch dependencies",
"groupSlug": "all-patch",
"matchPackageNames": ["*"]
"matchPackageNames": [
"*"
]
},
{
"matchManagers": ["dockerfile"],
"matchUpdateTypes": ["digest"],
"matchManagers": [
"dockerfile"
],
"matchUpdateTypes": [
"digest"
],
"pinDigests": true,
"commitMessagePrefix": "chore(docker):",
"commitMessageAction": "pin digests",
"groupName": "docker pin digests",
"groupSlug": "docker-all-digests"
}
]
}
}

0 comments on commit 2006675

Please sign in to comment.