Skip to content

Merge pull request #1 from jawherr/feature/1-init-structure-implement… #2

Merge pull request #1 from jawherr/feature/1-init-structure-implement…

Merge pull request #1 from jawherr/feature/1-init-structure-implement… #2

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: ["17"]
steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: ${{ matrix.java }}
cache: maven
- name: Build and run tests
run: mvn -B -DskipTests=false clean verify
- name: Build app Docker image
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: |
docker build -t java-microservices-app:latest ./app