Skip to content

fix(archi): clean archi of the project #154

fix(archi): clean archi of the project

fix(archi): clean archi of the project #154

Workflow file for this run

on:
push:
branches:
- '**'
pull_request:
types: [opened, synchronize, reopened]
permissions:
contents: read
name: Tests
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 25
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: 25
overwrite-settings: false
- name: Cache Maven packages
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-maven
- name: Prepare test properties
run: |
if [ -n "${{ secrets.APPLICATION_TEST_PROPERTIES }}" ]; then
printf '%s' "${{ secrets.APPLICATION_TEST_PROPERTIES }}" | base64 -d >> src/test/resources/application-test.properties
fi
echo "spring.sql.init.mode=never" >> src/test/resources/application-test.properties
- name: Prepare Docker .env for CI tests
run: |
printf '%s\n' \
"POSTGRES_USER=${{ secrets.POSTGRES_USER }}" \
"POSTGRES_PASSWORD=${{ secrets.POSTGRES_PASSWORD }}" \
"POSTGRES_DB=${{ secrets.POSTGRES_DB }}" \
"POSTGRES_PORT=${{ secrets.POSTGRES_PORT }}" > .env
- name: Install Docker Compose
run: |
sudo apt-get update
sudo apt-get install -y docker-compose
- name: Run unit and integration tests
run: ./mvnw clean verify