Skip to content

Merge pull request #50 from ASSERT-KTH/monperrus-patch-1 #207

Merge pull request #50 from ASSERT-KTH/monperrus-patch-1

Merge pull request #50 from ASSERT-KTH/monperrus-patch-1 #207

Workflow file for this run

name: build-on-push
on: [push]
jobs:
build_and_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 11
- name: Cache the Maven packages to speed up build
uses: actions/cache@v1
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Execute tests and compute coverage
run: mvn clean test
- name: Generate coverage report
run: mvn jacoco:report
publish-job:
runs-on: ubuntu-latest
needs: [build_and_test]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 11
- run: mvn -B package --file pom.xml -DskipTests
- run: mkdir staging && cp **/target/*jar-with-dependencies.jar staging
- uses: actions/upload-artifact@v1
with:
name: Package
path: staging