Skip to content

Commit 6f1bdd0

Browse files
authored
ECONDEC-79: Change continuous integration service from TravisCI to GitHub Actions (#159)
* Add github action workflow * Add X server to github actions to enable tests with gephi graph visualization * Checkout git history with github actions to enable git client tests on underlying git repository * Update tycho version from 2.4.0 to 3.0.4 and JDK to 17 (as tycho requires) * Update dependencies in pom.xml * Update version to 0.0.4
1 parent 392a411 commit 6f1bdd0

File tree

18 files changed

+1187
-735
lines changed

18 files changed

+1187
-735
lines changed

.github/workflows/maven.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Continuous integration
2+
on: [push]
3+
jobs:
4+
build:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v3
8+
with:
9+
fetch-depth: 0
10+
- name: Set up JDK 17
11+
uses: actions/setup-java@v2
12+
with:
13+
java-version: '17'
14+
distribution: 'temurin'
15+
- name: maven-settings-xml-action
16+
uses: whelk-io/maven-settings-xml-action@v4
17+
with:
18+
mirrors: '[{ "id": "mirror1", "mirrorOf": "central", "url": "http://netbeans.apidesign.org/maven2" }]'
19+
- name: Build with Maven
20+
run: |
21+
export DISPLAY=:99
22+
sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 &
23+
mvn clean install -P jacoco
24+
- name: Report test coverage via Codecov
25+
uses: codecov/codecov-action@v1.5.2
26+
with:
27+
files: de.uhd.ifi.se.decision.management.eclipse.tests.report/target/site/jacoco-aggregate/jacoco.xml
28+
- name: Get the version
29+
id: get_version
30+
run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/}
31+
- name: Create release on version tags
32+
uses: marvinpinto/action-automatic-releases@latest
33+
if: startsWith(github.ref, 'refs/tags/')
34+
with:
35+
repo_token: "${{ secrets.GITHUB_TOKEN }}"
36+
prerelease: false
37+
files: de.uhd.ifi.se.decision.management.eclipse/target/cures-condec-eclipse.jar
38+
automatic_release_tag: ${{ steps.get_version.outputs.VERSION }}
39+
env:
40+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2021 Software Engineering Research Group, Heidelberg University
3+
Copyright (c) 2023 Software Engineering Research Group, Heidelberg University
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# cures-condec-eclipse
22

3-
[![Build Status](https://app.travis-ci.com/cures-hub/cures-condec-eclipse.svg?branch=master)](https://app.travis-ci.com/cures-hub/cures-condec-eclipse)
3+
[![Continuous integration](https://github.com/cures-hub/cures-condec-eclipse/actions/workflows/maven.yml/badge.svg)](https://github.com/cures-hub/cures-condec-eclipse/actions/workflows/maven.yml)
44
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/d05c885619e24c5d8fb9113e203d10a4)](https://www.codacy.com/gh/cures-hub/cures-condec-eclipse/dashboard?utm_source=github.com&utm_medium=referral&utm_content=cures-hub/cures-condec-eclipse&utm_campaign=Badge_Grade)
55
[![Codecoverage](https://codecov.io/gh/cures-hub/cures-condec-eclipse/branch/master/graph/badge.svg)](https://codecov.io/gh/cures-hub/cures-condec-eclipse/branch/master)
66
[![GitHub contributors](https://img.shields.io/github/contributors/cures-hub/cures-condec-eclipse.svg)](https://github.com/cures-hub/cures-condec-eclipse/graphs/contributors)
@@ -53,7 +53,7 @@ The plug-in offers two views for textual knowledge presentation. Go to `Window`
5353

5454
### Prerequisites
5555
The following prerequisites are necessary to compile the plug-in from source code:
56-
- Java 15 JDK
56+
- Java 17 JDK
5757
- [Maven 3](https://maven.apache.org)
5858

5959
### Compilation via Terminal

de.uhd.ifi.se.decision.management.eclipse.tests.report/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>de.uhd.ifi.se.decision</groupId>
77
<artifactId>parent</artifactId>
8-
<version>0.0.3</version>
8+
<version>0.0.4</version>
99
</parent>
1010
<artifactId>de.uhd.ifi.se.decision.management.eclipse.tests.report</artifactId>
1111

de.uhd.ifi.se.decision.management.eclipse.tests/.classpath

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</attributes>
77
</classpathentry>
88
<classpathentry combineaccessrules="false" kind="src" path="/de.uhd.ifi.se.decision.management.eclipse"/>
9-
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-15">
9+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER">
1010
<attributes>
1111
<attribute name="module" value="true"/>
1212
</attributes>

de.uhd.ifi.se.decision.management.eclipse.tests/META-INF/MANIFEST.MF

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ Manifest-Version: 1.0
22
Bundle-ManifestVersion: 2
33
Bundle-Name: ConDec Eclipse Tests
44
Bundle-SymbolicName: de.uhd.ifi.se.decision.management.eclipse.tests
5-
Bundle-Version: 0.0.3
6-
Bundle-RequiredExecutionEnvironment: JavaSE-15
5+
Bundle-Version: 0.0.4
6+
Bundle-RequiredExecutionEnvironment: JavaSE-17
77
Require-Bundle: org.junit,
88
org.eclipse.core.runtime,
99
org.eclipse.jface,

de.uhd.ifi.se.decision.management.eclipse.tests/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>de.uhd.ifi.se.decision</groupId>
88
<artifactId>parent</artifactId>
9-
<version>0.0.3</version>
9+
<version>0.0.4</version>
1010
</parent>
1111

1212
<artifactId>de.uhd.ifi.se.decision.management.eclipse.tests</artifactId>

de.uhd.ifi.se.decision.management.eclipse.tests/src/de/uhd/ifi/se/decision/management/eclipse/extraction/TestJiraClient.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@
99
import java.net.URI;
1010
import java.util.Set;
1111

12-
import org.codehaus.jackson.node.JsonNodeFactory;
13-
import org.codehaus.jackson.node.ObjectNode;
1412
import org.junit.After;
1513
import org.junit.Before;
1614
import org.junit.Test;
1715

16+
import com.fasterxml.jackson.databind.node.JsonNodeFactory;
17+
import com.fasterxml.jackson.databind.node.ObjectNode;
18+
1819
import de.uhd.ifi.se.decision.management.eclipse.extraction.impl.JiraClientImpl;
1920
import de.uhd.ifi.se.decision.management.eclipse.mock.MockJiraRestClient;
2021
import de.uhd.ifi.se.decision.management.eclipse.model.JiraIssue;

0 commit comments

Comments
 (0)