Skip to content

Separation of modules and restructuring of models. Fix#1 #24

Separation of modules and restructuring of models. Fix#1

Separation of modules and restructuring of models. Fix#1 #24

Workflow file for this run

name: Tests
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
Run-service:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: maven
- name: Create application.properties for PointsCalculator service from GitHub.secrets
run: |
touch PointsCalculator/src/main/resources/application.properties
echo "server.port=9093" >> PointsCalculator/src/main/resources/application.properties
echo "spring.jackson.deserialization.fail-on-unknown-properties=false" >> PointsCalculator/src/main/resources/application.properties
echo "rabbitmq.hostname=${{ secrets.RABBITMQ_HOSTNAME }}" >> PointsCalculator/src/main/resources/application.properties
echo "rabbitmq.username=${{ secrets.RABBITMQ_USERNAME }}" >> PointsCalculator/src/main/resources/application.properties
echo "rabbitmq.password=${{ secrets.RABBITMQ_PASSWORD }}" >> PointsCalculator/src/main/resources/application.properties
echo "rabbitmq.virtualHost=${{ secrets.RABBITMQ_VIRTUALHOST }}" >> PointsCalculator/src/main/resources/application.properties
echo "rabbitmq.exchange=${{ secrets.RABBITMQ_EXCHANGE }}" >> PointsCalculator/src/main/resources/application.properties
echo "rabbitmq.queue.dialog=${{ secrets.RABBITMQ_QUEUE_DIALOG }}" >> PointsCalculator/src/main/resources/application.properties
echo "rabbitmq.routingKey.dialog=${{ secrets.RABBITMQ_ROUTINGKEY_DIALOG }}" >> PointsCalculator/src/main/resources/application.properties
echo "rabbitmq.queue.game=${{ secrets.RABBITMQ_QUEUE_GAME }}" >> PointsCalculator/src/main/resources/application.properties
echo "rabbitmq.routingKey.game=${{ secrets.RABBITMQ_ROUTINGKEY_GAME }}" >> PointsCalculator/src/main/resources/application.properties
- name: Run service
run: mvn spring-boot:run -pl PointsCalculator