Skip to content

ci: split the workflows #78

ci: split the workflows

ci: split the workflows #78

Workflow file for this run

name: Continuous Integration
on:
pull_request:
branches:
- main
paths:
- 'example/**'
- '.github/workflows/ci.yaml'
workflow_dispatch:
jobs:
example-ci:
defaults:
run:
working-directory: ./example
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 21
- name: Cache Maven dependencies
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Build with Maven
run: mvn clean verify -ntp