Skip to content

fix(spawn-application): default lifecycles to empty list in AbstractApplication #21

fix(spawn-application): default lifecycles to empty list in AbstractApplication

fix(spawn-application): default lifecycles to empty list in AbstractApplication #21

name: Main Pull Request
on:
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Java
uses: actions/setup-java@v4
with:
java-version: '25'
distribution: 'zulu'
cache: 'maven'
- name: Get cache week
id: date
run: echo "week=$(date +%Y-%W)" >> $GITHUB_OUTPUT
- name: Cache Docker images
id: cache-docker
uses: actions/cache@v4
with:
path: /tmp/docker-images
key: docker-images-${{ runner.os }}-${{ steps.date.outputs.week }}
restore-keys: |
docker-images-${{ runner.os }}-
- name: Load cached Docker images
if: steps.cache-docker.outputs.cache-hit == 'true'
run: docker load -i /tmp/docker-images/images.tar
- name: Pull and save Docker images
if: steps.cache-docker.outputs.cache-hit != 'true'
run: |
docker pull alpine:latest
docker pull nginx:latest
docker pull rabbitmq:latest
mkdir -p /tmp/docker-images
docker save alpine:latest nginx:latest rabbitmq:latest -o /tmp/docker-images/images.tar
- name: Build and Test
run: ./mvnw clean install