Skip to content

chore: build tweak #151

chore: build tweak

chore: build tweak #151

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
jobs:
build:
name: Build and Test
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
jdk: ['21']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
- name: Set up JDK
uses: actions/setup-java@v5
with:
distribution: temurin
java-version: ${{ matrix.jdk }}
cache: maven
# Auth for the GitHub Packages snapshot repository (id=github in pom.xml).
# exist-core SNAPSHOTs are published there from develop; without auth
# Maven gets 401 and falls back to the stale repo.exist-db.org snapshot.
server-id: github
server-username: GITHUB_ACTOR
server-password: GITHUB_TOKEN
# -U forces a SNAPSHOT-metadata refresh. The maven cache (above) could
# otherwise hold a stale exist-core SNAPSHOT across runs.
- name: Maven Build
env:
GITHUB_ACTOR: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: mvn -V -B -U -DskipTests=true install
- name: Maven Test
env:
GITHUB_ACTOR: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: mvn -B verify