Skip to content

Commit 6a7b734

Browse files
committed
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 6a7b734

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

0 commit comments

Comments
 (0)