Skip to content

update CI

update CI #7

Workflow file for this run

name: CI
on:
push:
branches:
- "**"
tags-ignore:
- "**"
jobs:
continuous-integration:
runs-on: ubuntu-latest
container:
image: maven:3-eclipse-temurin-21-jammy
volumes:
- ${{ runner.home }}/.m2:/root/.m2

Check failure on line 15 in .github/workflows/CI.yml

View workflow run for this annotation

GitHub Actions / CI

Invalid workflow file

The workflow is not valid. .github/workflows/CI.yml (Line: 15, Col: 11): Unrecognized named-value: 'runner'. Located at position 1 within expression: runner.home
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 }}