-
Notifications
You must be signed in to change notification settings - Fork 53
35 lines (30 loc) · 1006 Bytes
/
Copy pathci.yml
File metadata and controls
35 lines (30 loc) · 1006 Bytes
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
name: CI
on:
push:
branches: [ main ]
pull_request:
jobs:
test:
name: Build and integration test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Set up JDK 11
uses: actions/setup-java@v5
with:
java-version: '11'
distribution: 'zulu'
cache: maven
# Docker is preinstalled on ubuntu-latest runners, so Testcontainers can
# spin up the throw-away Nextcloud server used by the integration tests.
# GPG signing is bound to the verify phase but is only needed for
# releases (the publish workflow supplies the key), so skip it here.
- name: Build and run tests
run: mvn --batch-mode --update-snapshots verify -DskipTests=false -Dgpg.skip=true
- name: Upload JaCoCo coverage report
if: always()
uses: actions/upload-artifact@v4
with:
name: jacoco-coverage-report
path: target/site/jacoco
if-no-files-found: warn