This repository has been archived by the owner on Jan 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
93 lines (83 loc) · 2.3 KB
/
ci.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
name: continuous-integration
on:
- push
- pull_request
jobs:
formatting:
permissions:
contents: read # for actions/checkout to fetch code
pull-requests: write # for marocchino/sticky-pull-request-comment to create or update PR comment
runs-on: ubuntu-latest
strategy:
matrix:
java: ['16']
steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v2
with:
java-version: ${{ matrix.java }}
distribution: 'adopt'
- name: Check formatting
run: mvn com.coveo:fmt-maven-plugin:check -Dverbose=true
- name: Comment PR
if: github.event_name == 'pull_request' && failure()
uses: marocchino/[email protected]
with:
message: 'Please format your code with `mvn com.coveo:fmt-maven-plugin:format`.'
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
testing:
runs-on: ubuntu-latest
needs: formatting
strategy:
matrix:
java: ['8', '16']
steps:
- uses: actions/checkout@v2
with:
lfs: true
- name: Check out LFS objects
run: git lfs fetch --all
- name: Set up JDK
uses: actions/setup-java@v2
with:
java-version: ${{ matrix.java }}
distribution: 'adopt'
- name: Build JAR with Maven without submitting coverage report
run: >
mvn
--batch-mode
--update-snapshots
clean
package
- name: Run end-to-end tests
run: |
cd tests/hg19-chr22
bash run-tests.sh
testing-coverage:
runs-on: ubuntu-latest
needs: formatting
strategy:
matrix:
java: ['16']
steps:
- uses: actions/checkout@v2
with:
lfs: true
- name: Check out LFS objects
run: git lfs fetch --all
- name: Set up JDK
uses: actions/setup-java@v2
with:
java-version: ${{ matrix.java }}
distribution: 'adopt'
- name: Run test with Maven and submit coverage report
run: >
mvn
--define repoToken=${{ secrets.COVERALLS_REPO_TOKEN }}
--batch-mode
--update-snapshots
clean
test
jacoco:report
coveralls:report