Skip to content

Commit 0100450

Browse files
chore: add Node.js and pnpm setup to GitHub workflows for building admin UI
1 parent 9d49e21 commit 0100450

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

.github/workflows/lint.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,19 @@ jobs:
1717
- uses: actions/checkout@v3
1818
with:
1919
fetch-depth: 0
20+
- name: Setup Node.js
21+
uses: actions/setup-node@v2
22+
with:
23+
node-version: 20.x
24+
- name: Setup pnpm
25+
uses: pnpm/action-setup@v2
26+
with:
27+
version: 8.6.9
28+
- name: Build UI for embed
29+
run: |
30+
cd web/apps/admin-ui
31+
pnpm install
32+
pnpm run build
2033
- name: golangci-lint
2134
uses: golangci/golangci-lint-action@v8
2235
with:

.github/workflows/test.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,19 @@ jobs:
4444
uses: actions/setup-go@v4
4545
with:
4646
go-version: "1.23.1"
47+
- name: Setup Node.js
48+
uses: actions/setup-node@v2
49+
with:
50+
node-version: 20.x
51+
- name: Setup pnpm
52+
uses: pnpm/action-setup@v2
53+
with:
54+
version: 8.6.9
55+
- name: Build UI for embed
56+
run: |
57+
cd web/apps/admin-ui
58+
pnpm install
59+
pnpm run build
4760
- name: install dependencies
4861
run: go mod tidy
4962
- name: install spicedb binary
@@ -67,6 +80,19 @@ jobs:
6780
uses: actions/setup-go@v4
6881
with:
6982
go-version: "1.23.1"
83+
- name: Setup Node.js
84+
uses: actions/setup-node@v2
85+
with:
86+
node-version: 20.x
87+
- name: Setup pnpm
88+
uses: pnpm/action-setup@v2
89+
with:
90+
version: 8.6.9
91+
- name: Build UI for embed
92+
run: |
93+
cd web/apps/admin-ui
94+
pnpm install
95+
pnpm run build
7096
- name: install dependencies
7197
run: go mod tidy
7298
- name: run regression tests

0 commit comments

Comments
 (0)