Skip to content

Commit

Permalink
Split CI and Coverage workflows.
Browse files Browse the repository at this point in the history
  • Loading branch information
uhafner committed Mar 22, 2020
1 parent d65afc7 commit 2236e66
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 21 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: 'CI with GitHub Actions (on all platforms)'

on:
push:
branches:
- master
pull_request:

jobs:
build:

strategy:
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]

runs-on: ${{ matrix.platform }}
name: on ${{ matrix.platform }}

steps:
- uses: actions/checkout@v1
- name: Set up JDK 8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Build with Maven
run: mvn -V -ntp clean verify --file pom.xml '-Dgpg.skip'
24 changes: 3 additions & 21 deletions .github/workflows/maven.yml → .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: GitHub Actions
name: 'Generate and upload coverage report to https://codecov.io'

on:
push:
Expand All @@ -7,36 +7,18 @@ on:
pull_request:

jobs:
build:

strategy:
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]

runs-on: ${{ matrix.platform }}
name: on ${{ matrix.platform }}

steps:
- uses: actions/checkout@v1
- name: Set up JDK 8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Build with Maven
run: mvn -V -ntp clean verify --file pom.xml '-Dgpg.skip'

coverage:

runs-on: [ubuntu-latest]
name: coverage on Ubuntu
name: Coverage on Ubuntu

steps:
- uses: actions/checkout@v1
- name: Set up JDK 8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Coverage with JaCoCo
- name: Generate coverage with JaCoCo
run: mvn -V -ntp clean verify jacoco:prepare-agent test integration-test jacoco:report --file pom.xml '-Dgpg.skip'

- name: Upload coverage to Codecov
Expand Down

0 comments on commit 2236e66

Please sign in to comment.