-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (40 loc) · 1.42 KB
/
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
name: Continuous integration
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'temurin'
- name: maven-settings-xml-action
uses: whelk-io/maven-settings-xml-action@v4
with:
mirrors: '[{ "id": "mirror1", "mirrorOf": "central", "url": "http://netbeans.apidesign.org/maven2" }]'
- name: Build with Maven
run: |
export DISPLAY=:99
sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 &
mvn clean install -P jacoco
- name: Report test coverage via Codecov
uses: codecov/codecov-action@v1.5.2
with:
files: de.uhd.ifi.se.decision.management.eclipse.tests.report/target/site/jacoco-aggregate/jacoco.xml
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/}
- name: Create release on version tags
uses: marvinpinto/action-automatic-releases@latest
if: startsWith(github.ref, 'refs/tags/')
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: de.uhd.ifi.se.decision.management.eclipse/target/cures-condec-eclipse.jar
automatic_release_tag: ${{ steps.get_version.outputs.VERSION }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}