feat(spawn-application): migrate launcher discovery to ServiceLoader #22
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |