Skip to content

Commit 601057e

Browse files
authored
chore: unifies apps ci workflows (#2515)
1 parent 32f0e7b commit 601057e

20 files changed

+88
-389
lines changed

.github/workflows/all-ci.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: CI
2+
on:
3+
pull_request:
4+
branches: ["main", "main-sdk-next"]
5+
push:
6+
branches: ["main"]
7+
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
11+
12+
permissions:
13+
contents: read
14+
pull-requests: read
15+
16+
jobs:
17+
setup:
18+
runs-on: ubuntu-latest
19+
outputs:
20+
matrix: ${{ steps.matrix.outputs.value }}
21+
steps:
22+
- uses: actions/checkout@v6
23+
- id: matrix
24+
run: |
25+
workspaces=$(find apps/* -type d -print0 -maxdepth 0 | xargs -0 -n1 basename | jq -R -s -c 'split("\n")[:-1]')
26+
echo 'value={"workspace":'"$workspaces"'}' >> "$GITHUB_OUTPUT"
27+
28+
validate:
29+
needs: setup
30+
strategy:
31+
matrix: ${{ fromJson(needs.setup.outputs.matrix) }}
32+
uses: ./.github/workflows/reusable-validate-app.yml
33+
secrets: inherit
34+
with:
35+
app: ${{ matrix.workspace }}

.github/workflows/console-api-validate-n-build.yml

Lines changed: 0 additions & 55 deletions
This file was deleted.

.github/workflows/console-web-docker-build.yml

Lines changed: 0 additions & 47 deletions
This file was deleted.

.github/workflows/console-web-release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ jobs:
5454

5555
build-prod:
5656
needs: release
57+
if: needs.release.outputs.git_tag != ''
5758
name: Build Prod Docker image
5859
uses: ./.github/workflows/reusable-build-image.yml
5960
secrets: inherit

.github/workflows/indexer-docker-build.yml

Lines changed: 0 additions & 48 deletions
This file was deleted.

.github/workflows/log-collector-validate-n-build.yml

Lines changed: 0 additions & 40 deletions
This file was deleted.

.github/workflows/notifications-validate-n-build.yml

Lines changed: 0 additions & 51 deletions
This file was deleted.

.github/workflows/provider-console-docker-build.yml

Lines changed: 0 additions & 48 deletions
This file was deleted.

.github/workflows/provider-proxy-docker-build.yml

Lines changed: 0 additions & 52 deletions
This file was deleted.

0 commit comments

Comments
 (0)