-
Notifications
You must be signed in to change notification settings - Fork 17
39 lines (32 loc) · 925 Bytes
/
adminui.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Admin UI
on:
push:
branches: [master]
pull_request:
paths:
- adminui/**
- .github/workflows/adminui.yml
jobs:
build-and-test-adminui:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: '16'
cache: 'yarn'
- name: Cache node_modules
uses: actions/cache@v4
id: cached-node_modules
with:
path: |
adminui/node_modules
key: ${{ runner.os }}-${{ hashFiles('adminui/yarn.lock') }}-${{ hashFiles('.github/workflows/adminui.yml') }}
- name: Install yarn packages
if: steps.cached-node_modules.outputs.cache-hit != 'true'
working-directory: adminui
run: yarn --frozen-lockfile
- name: Build
working-directory: adminui
run: yarn run build