Skip to content

Commit

Permalink
refactor: clean up workflows (#596)
Browse files Browse the repository at this point in the history
  • Loading branch information
manuel-rw committed Jun 1, 2024
1 parent 26146f4 commit 4523083
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 42 deletions.
31 changes: 0 additions & 31 deletions .github/workflows/build.yml

This file was deleted.

16 changes: 14 additions & 2 deletions .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Code quality analysis
name: "[Quality] Code Analysis"

on:
pull_request:
Expand All @@ -8,7 +8,7 @@ on:
merge_group:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}

# You can leverage Vercel Remote Caching with Turbo to speed up your builds
Expand Down Expand Up @@ -72,3 +72,15 @@ jobs:
# Only works if you set `reportOnFailure: true` in your vite config as specified above
if: always()
uses: davelosert/vitest-coverage-report-action@v2

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup
uses: ./tooling/github/setup
- name: Copy env
shell: bash
run: cp .env.example .env
- name: Build
run: pnpm build
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@

# https://github.com/webiny/action-conventional-commits?tab=readme-ov-file

name: Conventional Commits
name: "[Conventions] Semantic Commits"

on:
pull_request:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Lint PR"
name: "[Conventions] Semantic PRs"

on:
pull_request_target:
Expand All @@ -11,8 +11,7 @@ permissions:
pull-requests: read

jobs:
main:
name: Validate PR title
validate-pull-request-title:
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v5
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Docker image
name: "[Deployment] Release"

on:
pull_request:
Expand Down Expand Up @@ -70,7 +70,7 @@ jobs:
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
images: "${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}"
tags: |
type=raw,value=latest
type=raw,value=${{ steps.semver.outputs.next }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
name: "[Deployment] Automatic Weekly Release"

on:
schedule:
- cron: "0 19 * * 5" # https://crontab.guru/#0_19_*_*_5
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/renovate-automatic-approval.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Approve Renovate PRs
name: "[Dependency Updates] Auto Approve"
on:
pull_request:
types: [opened, synchronize]
Expand Down

0 comments on commit 4523083

Please sign in to comment.