Merge pull request #110 from g-degiorgi/feature/create_cpt #147
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |