mirror of
https://github.com/gosticks/plane.git
synced 2025-10-16 12:45:33 +00:00
feat(repo): add diff checks in CI flows (#7657)
This commit is contained in:
parent
5d1ad8a183
commit
4a3c172992
33
.github/workflows/build-branch.yml
vendored
33
.github/workflows/build-branch.yml
vendored
@ -35,6 +35,10 @@ on:
|
|||||||
- preview
|
- preview
|
||||||
- canary
|
- canary
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
env:
|
env:
|
||||||
TARGET_BRANCH: ${{ github.ref_name }}
|
TARGET_BRANCH: ${{ github.ref_name }}
|
||||||
ARM64_BUILD: ${{ github.event.inputs.arm64 }}
|
ARM64_BUILD: ${{ github.event.inputs.arm64 }}
|
||||||
@ -268,15 +272,14 @@ jobs:
|
|||||||
if: ${{ needs.branch_build_setup.outputs.aio_build == 'true' }}
|
if: ${{ needs.branch_build_setup.outputs.aio_build == 'true' }}
|
||||||
name: Build-Push AIO Docker Image
|
name: Build-Push AIO Docker Image
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
needs: [
|
needs:
|
||||||
branch_build_setup,
|
- branch_build_setup
|
||||||
branch_build_push_admin,
|
- branch_build_push_admin
|
||||||
branch_build_push_web,
|
- branch_build_push_web
|
||||||
branch_build_push_space,
|
- branch_build_push_space
|
||||||
branch_build_push_live,
|
- branch_build_push_live
|
||||||
branch_build_push_api,
|
- branch_build_push_api
|
||||||
branch_build_push_proxy
|
- branch_build_push_proxy
|
||||||
]
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Files
|
- name: Checkout Files
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@ -285,7 +288,7 @@ jobs:
|
|||||||
id: prepare_aio_assets
|
id: prepare_aio_assets
|
||||||
run: |
|
run: |
|
||||||
cd deployments/aio/community
|
cd deployments/aio/community
|
||||||
|
|
||||||
if [ "${{ needs.branch_build_setup.outputs.build_type }}" == "Release" ]; then
|
if [ "${{ needs.branch_build_setup.outputs.build_type }}" == "Release" ]; then
|
||||||
aio_version=${{ needs.branch_build_setup.outputs.release_version }}
|
aio_version=${{ needs.branch_build_setup.outputs.release_version }}
|
||||||
else
|
else
|
||||||
@ -324,7 +327,14 @@ jobs:
|
|||||||
upload_build_assets:
|
upload_build_assets:
|
||||||
name: Upload Build Assets
|
name: Upload Build Assets
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
needs: [branch_build_setup, branch_build_push_admin, branch_build_push_web, branch_build_push_space, branch_build_push_live, branch_build_push_api, branch_build_push_proxy]
|
needs:
|
||||||
|
- branch_build_setup
|
||||||
|
- branch_build_push_admin
|
||||||
|
- branch_build_push_web
|
||||||
|
- branch_build_push_space
|
||||||
|
- branch_build_push_live
|
||||||
|
- branch_build_push_api
|
||||||
|
- branch_build_push_proxy
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Files
|
- name: Checkout Files
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@ -397,4 +407,3 @@ jobs:
|
|||||||
${{ github.workspace }}/deployments/cli/community/docker-compose.yml
|
${{ github.workspace }}/deployments/cli/community/docker-compose.yml
|
||||||
${{ github.workspace }}/deployments/cli/community/variables.env
|
${{ github.workspace }}/deployments/cli/community/variables.env
|
||||||
${{ github.workspace }}/deployments/swarm/community/swarm.sh
|
${{ github.workspace }}/deployments/swarm/community/swarm.sh
|
||||||
|
|
||||||
|
|||||||
@ -3,11 +3,21 @@ name: Build and lint API
|
|||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: ["preview"]
|
branches:
|
||||||
types: ["opened", "synchronize", "ready_for_review", "review_requested", "reopened"]
|
- "preview"
|
||||||
|
types:
|
||||||
|
- "opened"
|
||||||
|
- "synchronize"
|
||||||
|
- "ready_for_review"
|
||||||
|
- "review_requested"
|
||||||
|
- "reopened"
|
||||||
paths:
|
paths:
|
||||||
- "apps/api/**"
|
- "apps/api/**"
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint-api:
|
lint-api:
|
||||||
name: Lint API
|
name: Lint API
|
||||||
|
|||||||
@ -3,21 +3,18 @@ name: Build and lint web apps
|
|||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: ["preview"]
|
branches:
|
||||||
|
- "preview"
|
||||||
types:
|
types:
|
||||||
[
|
- "opened"
|
||||||
"opened",
|
- "synchronize"
|
||||||
"synchronize",
|
- "ready_for_review"
|
||||||
"ready_for_review",
|
- "review_requested"
|
||||||
"review_requested",
|
- "reopened"
|
||||||
"reopened",
|
|
||||||
]
|
concurrency:
|
||||||
paths:
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
- "**.tsx?"
|
cancel-in-progress: true
|
||||||
- "**.jsx?"
|
|
||||||
- "**.css"
|
|
||||||
- "**.json"
|
|
||||||
- "!apps/api/**"
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-lint:
|
build-and-lint:
|
||||||
@ -27,11 +24,15 @@ jobs:
|
|||||||
if: |
|
if: |
|
||||||
github.event.pull_request.draft == false &&
|
github.event.pull_request.draft == false &&
|
||||||
github.event.pull_request.requested_reviewers != null
|
github.event.pull_request.requested_reviewers != null
|
||||||
|
env:
|
||||||
|
TURBO_SCM_BASE: ${{ github.event.pull_request.base.sha }}
|
||||||
|
TURBO_SCM_HEAD: ${{ github.sha }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 2
|
fetch-depth: 50
|
||||||
|
filter: blob:none
|
||||||
|
|
||||||
- name: Set up Node.js
|
- name: Set up Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
@ -44,11 +45,11 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pnpm install --frozen-lockfile
|
run: pnpm install --frozen-lockfile
|
||||||
|
|
||||||
- name: Lint web apps
|
- name: Lint Affected
|
||||||
run: pnpm run check:lint
|
run: pnpm turbo run check:lint --affected
|
||||||
|
|
||||||
- name: Check format
|
- name: Check Affected format
|
||||||
run: pnpm run check:format
|
run: pnpm turbo run check:format --affected
|
||||||
|
|
||||||
- name: Build apps
|
- name: Build Affected
|
||||||
run: pnpm run build
|
run: pnpm turbo run build --affected
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user