generated from jonastahl/templates-Quarkus-Vue
-
Notifications
You must be signed in to change notification settings - Fork 0
77 lines (73 loc) · 1.99 KB
/
build.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: Validate format & build
on:
push:
branches: [ "master", "development" ]
pull_request:
branches: [ "master", "development" ]
workflow_dispatch:
jobs:
formatBackend:
name: Validate format of backend
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 22
uses: actions/setup-java@v3
with:
java-version: '22'
distribution: 'temurin'
cache: maven
- name: Validate backend format
run: cd backend && mvn spotless:check
buildBackend:
name: Build backend
runs-on: ubuntu-latest
needs: formatBackend
steps:
- uses: actions/checkout@v3
- name: Set up JDK 22
uses: actions/setup-java@v3
with:
java-version: '22'
distribution: 'temurin'
cache: maven
- name: Build backend
run: cd backend && mvn package
formatFrontend:
name: Validate format of frontend
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install frontend dependencies
run: cd frontend/app && npm install
- name: Validate frontend linter
run: cd frontend/app && npm run lint:validate
- name: Validate frontend prettier
run: cd frontend/app && npm run prettier:validate
buildFrontend:
name: Build frontend
runs-on: ubuntu-latest
needs: formatFrontend
steps:
- uses: actions/checkout@v3
- name: Set up JDK 22
uses: actions/setup-java@v3
with:
java-version: '22'
distribution: 'temurin'
cache: maven
- name: Build frontend
run: cd frontend && mvn package
buildAll:
name: Build whole application
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 22
uses: actions/setup-java@v3
with:
java-version: '22'
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: mvn package