-
Notifications
You must be signed in to change notification settings - Fork 4
48 lines (42 loc) · 1.23 KB
/
maven.yaml
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
name: Java CI with Maven
on:
push:
pull_request:
branches:
- master
- dev
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Code Checkout
uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
architecture: x64
- name: Install lpsolve and polco dependencies
run: >
mvn org.apache.maven.plugins:maven-dependency-plugin:3.1.2:get
-DgroupId=net.sf.lpsolve
-DartifactId=lp_solve
-Dversion=5.5.2
-Dpackaging=jar
-DremoteRepositories=https://raw.github.com/idsia/crema/mvn-repo/
;
mvn org.apache.maven.plugins:maven-dependency-plugin:3.1.2:get
-DgroupId=ch.javasoft.polco
-DartifactId=polco
-Dversion=4.7.1
-Dpackaging=jar
-DremoteRepositories=https://raw.github.com/idsia/crema/mvn-repo/
- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Execute tests
run: mvn test