Skip to content

Commit fe788dc

Browse files
committed
CI build with GitHub Actions instead of Travis
1 parent c592716 commit fe788dc

File tree

3 files changed

+66
-23
lines changed

3 files changed

+66
-23
lines changed

.github/workflows/build.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# Github action performing the following operations:
2+
# - Define an environment variable STOREPASS=password
3+
# - Build the Maven project with Java 8, Java 11 and Java 17 as a matrix. The JDK is provided by Temurin
4+
# - As a post build step, run the tests and upload test coverage to Coveralls.
5+
6+
name: build
7+
8+
on:
9+
push:
10+
branches: [ '*' ]
11+
pull_request:
12+
branches: [ master ]
13+
14+
env:
15+
STOREPASS: password
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
java: [ 8, 11 ]
24+
25+
steps:
26+
- uses: actions/checkout@v3
27+
28+
- name: Set up Java ${{ matrix.java }}
29+
uses: actions/setup-java@v3
30+
with:
31+
java-version: ${{ matrix.java }}
32+
distribution: 'temurin'
33+
cache: 'maven'
34+
35+
- name: Compile
36+
run: |
37+
mvn -version
38+
mvn -B clean compile
39+
40+
- name: Tests
41+
run: mvn -B test
42+
43+
- name: Packaging
44+
run: mvn -B package -DskipTests
45+
46+
- name: Coverage report
47+
run: mvn -B clean test jacoco:report-aggregate coveralls:report -DjacocoReports=jsign/target/site/jacoco-aggregate/jacoco.xml -DrepoToken=${{ secrets.COVERALLS_TOKEN }} || true
48+
49+
experimental:
50+
runs-on: ubuntu-latest
51+
needs: build
52+
steps:
53+
- uses: actions/checkout@v3
54+
55+
- name: Set up Java 20
56+
uses: actions/setup-java@v3
57+
with:
58+
java-version: 20
59+
distribution: 'temurin'
60+
cache: 'maven'
61+
62+
- name: Build
63+
run: |
64+
mvn -version
65+
mvn -B clean package || true

.travis.yml

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Jsign - Java implementation of Microsoft Authenticode
22
=====================================================
33

4-
[![Build Status](https://api.travis-ci.com/ebourg/jsign.svg)](https://app.travis-ci.com/github/ebourg/jsign)
4+
[![Build Status](https://github.com/ebourg/jsign/actions/workflows/build.yml/badge.svg)](https://github.com/ebourg/jsign/actions/workflows/build.yml)
55
[![Coverage Status](https://coveralls.io/repos/github/ebourg/jsign/badge.svg?branch=master)](https://coveralls.io/github/ebourg/jsign?branch=master)
66
[![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0)
77
[![Maven Central](https://img.shields.io/maven-central/v/net.jsign/jsign.svg)](https://search.maven.org/#search%7Cga%7C1%7Cg%3A%22net.jsign%22)

0 commit comments

Comments
 (0)