feat : adds github workflow for automating dependency upgrade #32
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
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven | |
name: Java CI with Maven | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v5 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v5 | |
with: | |
java-version: '11' | |
distribution: 'temurin' | |
cache: maven | |
- name: Build with Maven | |
run: | | |
# Give execute permission to scripts | |
chmod +x mvnw | |
chmod +x setup.sh | |
chmod +x test-em-all.sh | |
# Setup environment | |
./setup.sh | |
# Build without docker | |
./mvnw clean verify -Ddockerfile.skip | |
# Start docker compose services | |
docker compose -p ssm up -d | |
# Wait for services to be ready (extra buffer) | |
sleep 30 | |
# Run tests with increased timeouts | |
HOST=localhost PORT=8443 WAIT_TIME=10 RETRY_COUNT=40 ./test-em-all.sh | |
# Cleanup | |
docker compose -p ssm down --remove-orphans |