Skip to content

Commit bb27f52

Browse files
committed
ci: Add a GitHub workflow for UI building
Add a minimal workflow for building the UI, 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 7ab10aa commit bb27f52

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

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

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

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

0 commit comments

Comments
 (0)