Skip to content

Commit 78b6389

Browse files
committed
refactor
1 parent 80ad162 commit 78b6389

5 files changed

Lines changed: 35 additions & 44 deletions

File tree

.github/actions/setup-node/action.yaml

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

.github/actions/upload-ui-dist/action.yaml

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

.github/workflows/ci.yaml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,10 @@ jobs:
2525
- run: chmod 0600 ./e2e/manifests/website/.ssh/id_rsa
2626
- run: make test
2727
ui:
28-
name: Build UI frontend
29-
runs-on: ubuntu-24.04
28+
uses: ./.github/workflows/frontend.yaml
3029
permissions:
3130
contents: read
3231
id-token: write
33-
steps:
34-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
35-
- uses: ./.github/actions/setup-node
36-
- run: make frontend
37-
- uses: ./.github/actions/upload-ui-dist
3832
e2e:
3933
name: End-to-end Test
4034
runs-on: ubuntu-24.04

.github/workflows/frontend.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Frontend CI
2+
3+
on:
4+
workflow_call:
5+
6+
jobs:
7+
ui:
8+
name: Build UI frontend
9+
runs-on: ubuntu-24.04
10+
permissions:
11+
contents: read
12+
id-token: write
13+
steps:
14+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
15+
- uses: pnpm/action-setup@fc06bc1257f339d1d5a8cae5388b55320 # v5.0.0
16+
with:
17+
version: 10
18+
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
19+
with:
20+
node-version: 24
21+
cache: 'pnpm'
22+
cache-dependency-path: ./pnpm-lock.yaml
23+
- uses: flatt-security/setup-takumi-guard-npm@9a5d797c2085b6326d3a2985c08e3a114b9b88c1 # v1.1.1
24+
with:
25+
bot-id: ${{ inputs.bot-id }}
26+
bot-id: ${{ vars.TAKUMI_GUARD_BOT_ID }}
27+
- run: make frontend
28+
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
29+
with:
30+
name: website-operator-ui
31+
path: |
32+
ui/frontend/dist
33+
if-no-files-found: error

.github/workflows/release.yaml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,10 @@ on:
55
- 'v*'
66
jobs:
77
ui:
8-
name: Build website-operator-ui
9-
runs-on: ubuntu-24.04
8+
uses: ./.github/workflows/frontend.yaml
109
permissions:
1110
contents: read
1211
id-token: write
13-
steps:
14-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
15-
- uses: ./.github/actions/setup-node
16-
- run: |
17-
make frontend
18-
- uses: ./.github/actions/upload-ui-dist
1912
release:
2013
runs-on: ubuntu-24.04
2114
needs: [ui]

0 commit comments

Comments
 (0)