Skip to content

Commit f378851

Browse files
committed
Run CI from monorepo root
1 parent 205a11c commit f378851

2 files changed

Lines changed: 55 additions & 23 deletions

File tree

.github/workflows/ci.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
api:
14+
name: API
15+
runs-on: ubuntu-latest
16+
defaults:
17+
run:
18+
working-directory: api
19+
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v4
23+
- name: Set up Java
24+
uses: actions/setup-java@v4
25+
with:
26+
distribution: temurin
27+
java-version: 21
28+
cache: gradle
29+
- name: Build and test
30+
run: ./gradlew --no-daemon build
31+
32+
ui:
33+
name: UI
34+
runs-on: ubuntu-latest
35+
defaults:
36+
run:
37+
working-directory: ui
38+
39+
steps:
40+
- name: Checkout
41+
uses: actions/checkout@v4
42+
- name: Set up Node.js
43+
uses: actions/setup-node@v4
44+
with:
45+
node-version: 20
46+
cache: npm
47+
cache-dependency-path: ui/package-lock.json
48+
- name: Install dependencies
49+
run: npm ci
50+
- name: Test
51+
run: npm test -- --watchAll=false
52+
env:
53+
CI: true
54+
- name: Build
55+
run: npm run build

api/.github/workflows/ci.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)