-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (45 loc) · 3.32 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Tests
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
Tests:
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 Dialog/src/main/resources/application.properties
echo "server.port=9092" >> Dialog/src/main/resources/application.properties
echo "spring.jackson.deserialization.fail-on-unknown-properties=false" >> Dialog/src/main/resources/application.properties
echo "rabbitmq.hostname=${{ secrets.RABBITMQ_HOSTNAME }}" >> Dialog/src/main/resources/application.properties
echo "rabbitmq.username=${{ secrets.RABBITMQ_USERNAME }}" >> Dialog/src/main/resources/application.properties
echo "rabbitmq.password=${{ secrets.RABBITMQ_PASSWORD }}" >> Dialog/src/main/resources/application.properties
echo "rabbitmq.virtualHost=${{ secrets.RABBITMQ_VIRTUALHOST }}" >> Dialog/src/main/resources/application.properties
echo "rabbitmq.exchange=${{ secrets.RABBITMQ_EXCHANGE }}" >> Dialog/src/main/resources/application.properties
echo "rabbitmq.queue.dialog=${{ secrets.RABBITMQ_QUEUE_DIALOG }}" >> Dialog/src/main/resources/application.properties
echo "rabbitmq.routingKey.dialog=${{ secrets.RABBITMQ_ROUTINGKEY_DIALOG }}" >> Dialog/src/main/resources/application.properties
echo "rabbitmq.queue.game=${{ secrets.RABBITMQ_QUEUE_GAME }}" >> Dialog/src/main/resources/application.properties
echo "rabbitmq.routingKey.game=${{ secrets.RABBITMQ_ROUTINGKEY_GAME }}" >> Dialog/src/main/resources/application.properties
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 tests
run: mvn clean test