Skip to content

Merge pull request #131 from a-schild/dependabot/github_actions/actio… #52

Merge pull request #131 from a-schild/dependabot/github_actions/actio…

Merge pull request #131 from a-schild/dependabot/github_actions/actio… #52

Workflow file for this run

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@v7
with:
name: jacoco-coverage-report
path: target/site/jacoco
if-no-files-found: warn