Skip to content

Commit

Permalink
CI build with GitHub Actions instead of Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
ebourg committed May 12, 2023
1 parent c592716 commit 41500fd
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 23 deletions.
65 changes: 65 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# Github action performing the following operations:
# - Define an environment variable STOREPASS=password
# - Build the Maven project with Java 8, Java 11 and Java 17 as a matrix. The JDK is provided by Temurin
# - As a post build step, run the tests and upload test coverage to Coveralls.

name: build

on:
push:
branches: [ '*' ]
pull_request:
branches: [ master ]

env:
STOREPASS: password

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
java: [ 8, 11, 17 ]

steps:
- uses: actions/checkout@v3

- name: Set up Java ${{ matrix.java }}
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'
cache: 'maven'

- name: Compile
run: |
mvn -version
mvn -B clean compile
- name: Tests
run: mvn -B test

- name: Packaging
run: mvn -B package -DskipTests

- name: Coverage report
run: mvn -B clean test jacoco:report-aggregate coveralls:report -DjacocoReports=jsign/target/site/jacoco-aggregate/jacoco.xml -DrepoToken=${{ secrets.COVERALLS_TOKEN }} || true

experimental:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v3

- name: Set up Java 20
uses: actions/setup-java@v3
with:
java-version: 20
distribution: 'temurin'
cache: 'maven'

- name: Build
run: |
mvn -version
mvn -B clean package || true
22 changes: 0 additions & 22 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Jsign - Java implementation of Microsoft Authenticode
=====================================================

[![Build Status](https://api.travis-ci.com/ebourg/jsign.svg)](https://app.travis-ci.com/github/ebourg/jsign)
[![Build Status](https://github.com/ebourg/jsign/actions/workflows/build.yml/badge.svg?branch=master&event=push)](https://github.com/ebourg/jsign/actions/workflows/build.yml)
[![Coverage Status](https://coveralls.io/repos/github/ebourg/jsign/badge.svg?branch=master)](https://coveralls.io/github/ebourg/jsign?branch=master)
[![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0)
[![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)
Expand Down

0 comments on commit 41500fd

Please sign in to comment.