refactor: clean up workflows (#596)
This commit is contained in:
31
.github/workflows/build.yml
vendored
31
.github/workflows/build.yml
vendored
@@ -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
|
|
||||||
16
.github/workflows/code-quality.yml
vendored
16
.github/workflows/code-quality.yml
vendored
@@ -1,4 +1,4 @@
|
|||||||
name: Code quality analysis
|
name: "[Quality] Code Analysis"
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
@@ -8,7 +8,7 @@ on:
|
|||||||
merge_group:
|
merge_group:
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
group: "${{ github.workflow }}-${{ github.ref }}"
|
||||||
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
|
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
|
||||||
|
|
||||||
# You can leverage Vercel Remote Caching with Turbo to speed up your builds
|
# 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
|
# Only works if you set `reportOnFailure: true` in your vite config as specified above
|
||||||
if: always()
|
if: always()
|
||||||
uses: davelosert/vitest-coverage-report-action@v2
|
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
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
|
|
||||||
# https://github.com/webiny/action-conventional-commits?tab=readme-ov-file
|
# https://github.com/webiny/action-conventional-commits?tab=readme-ov-file
|
||||||
|
name: "[Conventions] Semantic Commits"
|
||||||
name: Conventional Commits
|
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
name: "Lint PR"
|
name: "[Conventions] Semantic PRs"
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request_target:
|
pull_request_target:
|
||||||
@@ -11,8 +11,7 @@ permissions:
|
|||||||
pull-requests: read
|
pull-requests: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
main:
|
validate-pull-request-title:
|
||||||
name: Validate PR title
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: amannn/action-semantic-pull-request@v5
|
- uses: amannn/action-semantic-pull-request@v5
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
name: Docker image
|
name: "[Deployment] Release"
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
@@ -70,7 +70,7 @@ jobs:
|
|||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v5
|
uses: docker/metadata-action@v5
|
||||||
with:
|
with:
|
||||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
images: "${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}"
|
||||||
tags: |
|
tags: |
|
||||||
type=raw,value=latest
|
type=raw,value=latest
|
||||||
type=raw,value=${{ steps.semver.outputs.next }}
|
type=raw,value=${{ steps.semver.outputs.next }}
|
||||||
@@ -1,3 +1,5 @@
|
|||||||
|
name: "[Deployment] Automatic Weekly Release"
|
||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "0 19 * * 5" # https://crontab.guru/#0_19_*_*_5
|
- cron: "0 19 * * 5" # https://crontab.guru/#0_19_*_*_5
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
name: Approve Renovate PRs
|
name: "[Dependency Updates] Auto Approve"
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
types: [opened, synchronize]
|
types: [opened, synchronize]
|
||||||
|
|||||||
Reference in New Issue
Block a user