-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (38 loc) · 928 Bytes
/
maven.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
name: Java CI with Maven
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up JDK 19
uses: actions/setup-java@v2
with:
java-version: '19'
distribution: 'temurin'
- name: Build Baloot 1 with Maven
run: mvn clean install -f Baloot1/pom.xml
- name: Build Baloot 2 with Maven
run: mvn clean install -f Baloot2/pom.xml
test:
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up JDK 19
uses: actions/setup-java@v2
with:
java-version: '19'
distribution: 'temurin'
- name: Run Baloot 1 tests
run: mvn test -f Baloot1/pom.xml
- name: Run Baloot 2 tests
run: mvn test -f Baloot2/pom.xml