-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (39 loc) · 1.03 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
name: shipengine-java CI
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
tests:
name: Tests
runs-on: ${{ matrix.os }}
timeout-minutes: 15
strategy:
fail-fast: true
matrix:
os:
- ubuntu-18.04
java-version:
- "11"
steps:
- uses: actions/checkout@v2
- name: Setup Java JDK v${{ matrix.java-version }} for x64
uses: actions/setup-java@v2.3.0
with:
java-version: ${{ matrix.java-version }}
architecture: x64
distribution: "adopt"
server-id: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
- name: Lint the code
run: |
mvn --quiet checkstyle:check -Dmaven.test.skip=true
- name: Run test suite
run: |
mvn --quiet clean test jacoco:report coveralls:report -D repoToken=${{ secrets.COVERALLS_TOKEN }}