Skip to content

Commit 5f47c05

Browse files
Etsijamnonnenmacher
authored andcommitted
ci: Add UI building to build and test workflow
Add UI building to the workflow, to automatically assess the buildability of the UI codebase after Renovate Bot 's suggested UI dependency updates. Signed-off-by: Jyrki Keisala <[email protected]>
1 parent 6e19ad3 commit 5f47c05

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

Diff for: .github/workflows/build-and-test.yml

+32
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,38 @@ jobs:
3434
- name: Build all classes
3535
run: ./gradlew --stacktrace classes
3636

37+
build-ui:
38+
runs-on: ubuntu-latest
39+
steps:
40+
- name: Checkout Repository
41+
uses: actions/checkout@v4
42+
43+
- name: Install Node
44+
uses: actions/setup-node@v4
45+
with:
46+
node-version: 20
47+
48+
- uses: pnpm/action-setup@v3
49+
name: Install pnpm
50+
with:
51+
version: 8
52+
53+
- name: Get pnpm store directory
54+
shell: bash
55+
run: |
56+
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
57+
58+
- uses: actions/cache@v4
59+
name: Setup pnpm cache
60+
with:
61+
path: ${{ env.STORE_PATH }}
62+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
63+
restore-keys: |
64+
${{ runner.os }}-pnpm-store-
65+
66+
- name: Build UI
67+
run: pnpm -C ui install build
68+
3769
test:
3870
needs: build
3971
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)