Skip to content

downgrade version for testing #432

downgrade version for testing

downgrade version for testing #432

name: catalog-service
on:
push:
paths:
- "catalog-service/**"
branches: [main]
pull_request:
paths:
- "catalog-service/**"
types:
- opened
- synchronize
- reopened
jobs:
build:
name: Run Unit & Integration Tests with jdk ${{ matrix.java }}
runs-on: ubuntu-latest
defaults:
run:
working-directory: "catalog-service"
strategy:
matrix:
java: ["17"]
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- uses: graalvm/setup-graalvm@v1
with:
version: "latest"
java-version: ${{ matrix.java }}
components: "native-image"
github-token: ${{ secrets.GITHUB_TOKEN }}
cache: "maven"
- name: Printing versions
run: |
echo "GRAALVM_HOME: $GRAALVM_HOME"
echo "JAVA_HOME: $JAVA_HOME"
java --version
gu --version
native-image --version
- name: Build and analyze
run: ./mvnw clean verify
- if: ${{ github.ref == 'refs/heads/main' }}
name: Build Image and push to docker
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
DOCKER_PASSCODE: ${{secrets.DOCKER_PASSCODE}}
run: ./mvnw spring-boot:build-image -DskipTests -DCI_DOCKER_PASSWORD=${DOCKER_PASSCODE} -DCI_DOCKER_USERNAME=dockertmt