-
Notifications
You must be signed in to change notification settings - Fork 17
58 lines (45 loc) · 1.47 KB
/
continuous-integration-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
name: CI Build
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
name: Build Main Branch
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: Build Initial Reading with Maven
working-directory: ./initial/reading
run: ./mvnw --batch-mode clean package
- name: Build Initial Reading with Gradle
working-directory: ./initial/reading
run: ./gradlew build
- name: Build Initial Bookstore with Maven
working-directory: ./initial/bookstore
run: ./mvnw --batch-mode clean package
- name: Build Initial Bookstore with Gradle
working-directory: ./initial/bookstore
run: ./gradlew build
- name: Build Complete Reading with Maven
working-directory: ./complete/reading
run: ./mvnw --batch-mode clean package
- name: Build Complete Reading with Gradle
working-directory: ./complete/reading
run: ./gradlew build
- name: Build Complete Bookstore with Maven
working-directory: ./complete/bookstore
run: ./mvnw --batch-mode clean package
- name: Build Complete Bookstore with Gradle
working-directory: ./complete/bookstore
run: ./gradlew build