Skip to content

update CI

update CI #6

Workflow file for this run

name: CI
on:
push:
branches:
- "**"
tags-ignore:
- "**"
jobs:
continuous-integration:
runs-on: ubuntu-latest
container: maven:3-eclipse-temurin-21-jammy
env:
MAVEN_CLI_OPTS: "--batch-mode --errors --fail-at-end --show-version"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Cache
uses: actions/cache@v4
with:
path: .m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-maven-
- name: Show file content
run: cat ~/.m2/settings.xml
- name: Test
run: mvn $MAVEN_CLI_OPTS test
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build library
run: mvn -$MAVEN_CLI_OPTS clean package -DskipTests
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build CLI
run: mvn $MAVEN_CLI_OPTS clean package -Pcli -DskipTests
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}