forked from vivo-community/scholars-discovery
-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (34 loc) · 1.14 KB
/
maven.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Java CI with Maven
on: [push, pull_request, workflow_dispatch]
jobs:
build:
strategy:
matrix:
runs-on: [windows-latest, macos-latest, ubuntu-latest]
java-version: [11, 17]
runs-on: ${{ matrix.runs-on }}
steps:
- uses: actions/checkout@v3
- name: Setup Java
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java-version }}
distribution: 'adopt'
architecture: x64
cache: 'maven'
- name: Tests with Coveralls coverage report
run: mvn clean test jacoco:report coveralls:report -DdryRun=true
- name: Coveralls coverage report
uses: MikeEdgar/github-action@raw_coverage_file
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-file: ./target/coveralls.json
coverage-format: raw
- name: Deploy to GitHub pages
if: ${{ github.ref == 'refs/heads/tamu-main' && matrix.runs-on == 'ubuntu-latest' && matrix.java-version == '17' }}
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: target/generated-docs
branch: gh-pages
clean: true
single-commit: true