githb action: attempt 1 #2
This file contains 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: Project Pipeline | |
on: | |
push: | |
branches: | |
- "**" # Trigger on all branches | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout the repository | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
# Set up Java environment | |
- name: Set up Java | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '21' | |
distribution: 'zulu' | |
# Maven clean install | |
- name: Maven Clean Install | |
run: mvn clean install | |
# Docker build | |
- name: Docker Build | |
run: docker build -f Dockerfile-component -t ct/eventsourcing:latest . | |
# Maven test with the component profile | |
- name: Maven Test with Component Profile | |
run: mvn test -Pcomponent |