Skip to content

Commit 764da6c

Browse files
committed
CI: switch to GitHub Actions from TravisCI
1 parent 3f3dbcf commit 764da6c

File tree

3 files changed

+184
-172
lines changed

3 files changed

+184
-172
lines changed

.github/workflows/ci.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven
3+
4+
name: Java CI with Maven
5+
6+
on:
7+
push:
8+
branches: [ cwl-1.2.0 ]
9+
pull_request:
10+
branches: [ cwl-1.2.0 ]
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v3
19+
- name: Set up JDK 11
20+
uses: actions/setup-java@v3
21+
with:
22+
java-version: '11'
23+
distribution: 'temurin'
24+
cache: maven
25+
- name: Build with Maven
26+
run: mvn --batch-mode --update-snapshots test
27+
- name: Coverage report
28+
run: |
29+
mvn prepare-package -DskipTests=true
30+
mvn --errors test org.jacoco:jacoco-maven-plugin:report org.eluder.coveralls:coveralls-maven-plugin:report --no-transfer-progress -DrepoToken=$COVERALLS_SECRET -DpullRequest=${{ github.event.number }}
31+
env:
32+
CI_NAME: github
33+
COVERALLS_SECRET: ${{ secrets.GITHUB_TOKEN }}
34+
# Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
35+
- name: Update dependency graph
36+
uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6

.travis.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

pom.xml

Lines changed: 148 additions & 157 deletions
Original file line numberDiff line numberDiff line change
@@ -1,163 +1,154 @@
11
<?xml version="1.0"?>
22
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3-
<modelVersion>4.0.0</modelVersion>
4-
5-
<groupId>org.w3id.cwl.sdk</groupId>
6-
<artifactId>cwljava</artifactId>
7-
<packaging>jar</packaging>
8-
<name>Common Workflow Language SDK</name>
9-
<description><![CDATA[This project contains Java objects and utilities auto-generated by <a href="https://github.com/common-workflow-language/schema_salad">Schema Salad</a> for parsing documents corresponding to the https://w3id.org/cwl/cwl# schema.]]></description>
10-
<version>1.2.0-SNAPSHOT</version>
11-
12-
<properties>
13-
<commonslang.version>3.12.0</commonslang.version>
14-
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
15-
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
16-
</properties>
17-
18-
<licenses>
19-
<license>
20-
<name>Apache License, Version 2.0</name>
21-
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
22-
</license>
23-
</licenses>
24-
25-
<build>
26-
<pluginManagement>
27-
<plugins>
28-
<plugin>
29-
<groupId>org.apache.maven.plugins</groupId>
30-
<artifactId>maven-deploy-plugin</artifactId>
31-
<version>3.0.0</version>
32-
</plugin>
33-
<plugin>
34-
<groupId>org.apache.maven.plugins</groupId>
35-
<artifactId>maven-compiler-plugin</artifactId>
36-
<version>3.10.1</version>
37-
<configuration>
38-
<release>11</release>
39-
<showDeprecation>true</showDeprecation>
40-
</configuration>
41-
</plugin>
42-
</plugins>
43-
</pluginManagement>
44-
45-
<plugins>
46-
<plugin>
47-
<groupId>org.apache.maven.plugins</groupId>
48-
<artifactId>maven-release-plugin</artifactId>
49-
<version>2.5.3</version>
50-
</plugin>
51-
<plugin>
52-
<groupId>org.apache.maven.plugins</groupId>
53-
<artifactId>maven-surefire-plugin</artifactId>
54-
<version>2.22.2</version>
55-
</plugin>
56-
<plugin>
57-
<groupId>org.apache.maven.plugins</groupId>
58-
<artifactId>maven-javadoc-plugin</artifactId>
59-
<version>3.4.1</version>
60-
<configuration>
61-
</configuration>
62-
</plugin>
63-
<plugin>
64-
<groupId>org.apache.maven.plugins</groupId>
65-
<artifactId>maven-jar-plugin</artifactId>
66-
<version>3.3.0</version>
67-
<configuration>
68-
<archive>
69-
<manifestFile>src/main/resources/META-INF/MANIFEST.MF</manifestFile>
70-
</archive>
3+
<modelVersion>4.0.0</modelVersion>
4+
<groupId>org.w3id.cwl.sdk</groupId>
5+
<artifactId>cwljava</artifactId>
6+
<packaging>jar</packaging>
7+
<name>Common Workflow Language SDK</name>
8+
<description><![CDATA[This project contains Java objects and utilities auto-generated by <a href="https://github.com/common-workflow-language/schema_salad">Schema Salad</a> for parsing documents corresponding to the https://w3id.org/cwl/cwl# schema.]]></description>
9+
<version>1.2.0-SNAPSHOT</version>
10+
<properties>
11+
<commonslang.version>3.12.0</commonslang.version>
12+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
13+
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
14+
</properties>
15+
<licenses>
16+
<license>
17+
<name>Apache License, Version 2.0</name>
18+
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
19+
</license>
20+
</licenses>
21+
<build>
22+
<pluginManagement>
23+
<plugins>
24+
<plugin>
25+
<groupId>org.apache.maven.plugins</groupId>
26+
<artifactId>maven-deploy-plugin</artifactId>
27+
<version>3.0.0</version>
28+
</plugin>
29+
<plugin>
30+
<groupId>org.apache.maven.plugins</groupId>
31+
<artifactId>maven-compiler-plugin</artifactId>
32+
<version>3.10.1</version>
33+
<configuration>
34+
<release>11</release>
35+
<showDeprecation>true</showDeprecation>
36+
</configuration>
37+
</plugin>
38+
</plugins>
39+
</pluginManagement>
40+
<plugins>
41+
<plugin>
42+
<groupId>org.apache.maven.plugins</groupId>
43+
<artifactId>maven-release-plugin</artifactId>
44+
<version>2.5.3</version>
45+
</plugin>
46+
<plugin>
47+
<groupId>org.apache.maven.plugins</groupId>
48+
<artifactId>maven-surefire-plugin</artifactId>
49+
<version>2.22.2</version>
50+
</plugin>
51+
<plugin>
52+
<groupId>org.apache.maven.plugins</groupId>
53+
<artifactId>maven-javadoc-plugin</artifactId>
54+
<version>3.4.1</version>
55+
<configuration>
7156
</configuration>
72-
</plugin>
73-
<plugin>
74-
<artifactId>maven-assembly-plugin</artifactId>
75-
<configuration>
76-
<archive>
77-
<manifest>
78-
<mainClass>org.w3id.cwl.cwl1_2.utils.Validator</mainClass>
79-
</manifest>
80-
</archive>
81-
<descriptorRefs>
82-
<descriptorRef>jar-with-dependencies</descriptorRef>
83-
</descriptorRefs>
84-
</configuration>
85-
</plugin>
86-
</plugins>
87-
</build>
88-
89-
<dependencyManagement>
90-
<dependencies>
91-
<dependency>
92-
<groupId>org.apache.commons</groupId>
93-
<artifactId>commons-lang3</artifactId>
94-
<version>${commonslang.version}</version>
95-
</dependency>
96-
</dependencies>
97-
</dependencyManagement>
98-
57+
</plugin>
58+
<plugin>
59+
<groupId>org.apache.maven.plugins</groupId>
60+
<artifactId>maven-jar-plugin</artifactId>
61+
<version>3.3.0</version>
62+
<configuration>
63+
<archive>
64+
<manifestFile>src/main/resources/META-INF/MANIFEST.MF</manifestFile>
65+
</archive>
66+
</configuration>
67+
</plugin>
68+
<plugin>
69+
<artifactId>maven-assembly-plugin</artifactId>
70+
<configuration>
71+
<archive>
72+
<manifest>
73+
<mainClass>org.w3id.cwl.cwl1_2.utils.Validator</mainClass>
74+
</manifest>
75+
</archive>
76+
<descriptorRefs>
77+
<descriptorRef>jar-with-dependencies</descriptorRef>
78+
</descriptorRefs>
79+
</configuration>
80+
</plugin>
81+
</plugins>
82+
</build>
83+
<dependencyManagement>
9984
<dependencies>
100-
<dependency>
101-
<groupId>junit</groupId>
102-
<artifactId>junit</artifactId>
103-
<version>4.13.2</version>
104-
</dependency>
105-
<dependency>
106-
<groupId>org.snakeyaml</groupId>
107-
<artifactId>snakeyaml-engine</artifactId>
108-
<version>2.6</version>
109-
</dependency>
110-
<dependency>
111-
<groupId>com.fasterxml.jackson.core</groupId>
112-
<artifactId>jackson-databind</artifactId>
113-
<version>2.14.2</version>
114-
</dependency>
115-
<dependency>
116-
<groupId>com.fasterxml.jackson.dataformat</groupId>
117-
<artifactId>jackson-dataformat-yaml</artifactId>
118-
<version>2.14.2</version>
119-
</dependency>
85+
<dependency>
86+
<groupId>org.apache.commons</groupId>
87+
<artifactId>commons-lang3</artifactId>
88+
<version>${commonslang.version}</version>
89+
</dependency>
12090
</dependencies>
121-
122-
<profiles>
123-
<profile>
124-
<id>travis</id>
125-
<activation>
126-
<property>
127-
<name>env.TRAVIS</name>
128-
<value>true</value>
129-
</property>
130-
</activation>
131-
<build>
132-
<plugins>
133-
<plugin>
134-
<groupId>org.jacoco</groupId>
135-
<artifactId>jacoco-maven-plugin</artifactId>
136-
<version>0.8.8</version>
137-
<executions>
138-
<execution>
139-
<id>prepare-agent</id>
140-
<goals>
141-
<goal>prepare-agent</goal>
142-
</goals>
143-
</execution>
144-
</executions>
145-
</plugin>
146-
<plugin>
147-
<groupId>org.eluder.coveralls</groupId>
148-
<artifactId>coveralls-maven-plugin</artifactId>
149-
<version>4.3.0</version>
150-
<dependencies>
151-
<dependency>
152-
<groupId>javax.xml.bind</groupId>
153-
<artifactId>jaxb-api</artifactId>
154-
<version>2.3.1</version>
155-
</dependency>
156-
</dependencies>
157-
</plugin>
158-
</plugins>
159-
</build>
160-
</profile>
161-
</profiles>
162-
91+
</dependencyManagement>
92+
<dependencies>
93+
<dependency>
94+
<groupId>junit</groupId>
95+
<artifactId>junit</artifactId>
96+
<version>4.13.2</version>
97+
</dependency>
98+
<dependency>
99+
<groupId>org.snakeyaml</groupId>
100+
<artifactId>snakeyaml-engine</artifactId>
101+
<version>2.6</version>
102+
</dependency>
103+
<dependency>
104+
<groupId>com.fasterxml.jackson.core</groupId>
105+
<artifactId>jackson-databind</artifactId>
106+
<version>2.14.2</version>
107+
</dependency>
108+
<dependency>
109+
<groupId>com.fasterxml.jackson.dataformat</groupId>
110+
<artifactId>jackson-dataformat-yaml</artifactId>
111+
<version>2.14.2</version>
112+
</dependency>
113+
</dependencies>
114+
<profiles>
115+
<profile>
116+
<id>github</id>
117+
<activation>
118+
<property>
119+
<name>env.CI</name>
120+
<value>true</value>
121+
</property>
122+
</activation>
123+
<build>
124+
<plugins>
125+
<plugin>
126+
<groupId>org.jacoco</groupId>
127+
<artifactId>jacoco-maven-plugin</artifactId>
128+
<version>0.8.8</version>
129+
<executions>
130+
<execution>
131+
<id>prepare-agent</id>
132+
<goals>
133+
<goal>prepare-agent</goal>
134+
</goals>
135+
</execution>
136+
</executions>
137+
</plugin>
138+
<plugin>
139+
<groupId>org.eluder.coveralls</groupId>
140+
<artifactId>coveralls-maven-plugin</artifactId>
141+
<version>4.3.0</version>
142+
<dependencies>
143+
<dependency>
144+
<groupId>javax.xml.bind</groupId>
145+
<artifactId>jaxb-api</artifactId>
146+
<version>2.3.1</version>
147+
</dependency>
148+
</dependencies>
149+
</plugin>
150+
</plugins>
151+
</build>
152+
</profile>
153+
</profiles>
163154
</project>

0 commit comments

Comments
 (0)