Skip to content

Commit db6f751

Browse files
committed
ci: run single build and compatibility checks
1 parent 0dfc447 commit db6f751

2 files changed

Lines changed: 18 additions & 7 deletions

File tree

.github/workflows/build.yml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,29 @@ permissions:
77
contents: read
88

99
jobs:
10-
root:
10+
build:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout source code
1414
uses: actions/checkout@v4
15+
- name: Use Java LTS
16+
uses: actions/setup-java@v4
17+
with:
18+
distribution: temurin
19+
java-version: "21"
1520
- name: Use Node.js LTS
1621
uses: actions/setup-node@v4
1722
with:
18-
node-version: "lts/*"
23+
node-version: "22.x"
1924
- name: Build
20-
run: make root
25+
run: make
2126

22-
web-app:
27+
check-web-app-compatibility:
2328
runs-on: ubuntu-latest
2429
strategy:
2530
matrix:
26-
node-version: ["20.x", "22.x", "24.x"]
31+
# Verify previous LTS and current
32+
node-version: ["20.x", "24.x"]
2733
steps:
2834
- name: Checkout source code
2935
uses: actions/checkout@v4
@@ -34,11 +40,12 @@ jobs:
3440
- name: Build
3541
run: make -C web-app
3642

37-
api-app:
43+
check-api-app-compatibility:
3844
runs-on: ubuntu-latest
3945
strategy:
4046
matrix:
41-
java-version: ["21", "24"]
47+
# Verify previous LTS and current
48+
java-version: ["17", "24"]
4249
steps:
4350
- name: Checkout source code
4451
uses: actions/checkout@v4

api-app/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
export NPM_CONFIG_YES=true
2+
13
all: dist check
24

35
clean:
@@ -13,9 +15,11 @@ start:
1315

1416
check: test
1517
./gradlew check -x test
18+
npx prettier --check .
1619

1720
format:
1821
./gradlew spotlessApply
22+
npx prettier --write .
1923

2024
dev: start
2125

0 commit comments

Comments
 (0)