refactor: clean up workflows (#596)

This commit is contained in:
Manuel
2024-06-01 22:04:42 +02:00
committed by GitHub
parent 26146f4037
commit 452308336a
7 changed files with 22 additions and 42 deletions

View File

@@ -1,31 +0,0 @@
name: Build apps and migration script
on:
pull_request:
branches: ["*"]
push:
branches: ["main"]
merge_group:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
env:
FORCE_COLOR: 3
jobs:
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

View File

@@ -1,4 +1,4 @@
name: Code quality analysis
name: "[Quality] Code Analysis"
on:
pull_request:
@@ -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
@@ -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

View File

@@ -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:

View File

@@ -1,4 +1,4 @@
name: "Lint PR"
name: "[Conventions] Semantic PRs"
on:
pull_request_target:
@@ -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

View File

@@ -1,4 +1,4 @@
name: Docker image
name: "[Deployment] Release"
on:
pull_request:
@@ -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 }}

View File

@@ -1,3 +1,5 @@
name: "[Deployment] Automatic Weekly Release"
on:
schedule:
- cron: "0 19 * * 5" # https://crontab.guru/#0_19_*_*_5

View File

@@ -1,4 +1,4 @@
name: Approve Renovate PRs
name: "[Dependency Updates] Auto Approve"
on:
pull_request:
types: [opened, synchronize]