-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (36 loc) · 1.17 KB
/
development-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
name: development-actions
on:
push:
branches-ignore:
- 'wip*'
- '[0-9]+.[0-9x]+.x'
jobs:
ci:
name: run style verification, tests and then publish to nexus staging repository
runs-on: ubuntu-22.04
steps:
- name: Git checkout
uses: actions/checkout@v4
- name: Java JDK 11 setup
uses: actions/setup-java@v4
with:
java-version: 11
architecture: x64
distribution: 'zulu'
cache: 'maven'
server-id: ossrh
server-username: NEXUS_USERNAME
server-password: NEXUS_PASSWORD
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg-passphrase: GPG_PASSPHRASE
- name: Run style checks and tests
run: ./mvnw clean verify
- name: Upload coverage to coveralls
run: ./mvnw coveralls:report
env:
COVERALLS_TOKEN: ${{ secrets.COVERALLS_TOKEN }}
- name: Publish to Snapshot repository
run: ./mvnw deploy -Dmaven.test.skip=true -Dcheckstyle.skip=true -Ddetekt.skip=true
env:
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}