Skip to content

Commit

Permalink
Upd deploy scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
XyL1GaN4eG committed Jul 28, 2024
1 parent 741e6b6 commit 22c29eb
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 18 deletions.
17 changes: 0 additions & 17 deletions .github/workflows/deploy_tg_bot_service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,6 @@ jobs:
source: tgBotService/
target: /home/xyl1gan4eg/myJavaProjects/weatherProject/

- name: SSH into server and test tgBotService
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SERVER_HOST }}
username: ${{ secrets.SERVER_USERNAME }}
key: ${{ secrets.CLIENT_PRIVATE_KEY }}
script: |
echo "Building tgBotService on server..."
cd /home/xyl1gan4eg/myJavaProjects/weatherProject/tgBotService
mvn test
echo "test completed."
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}


- name: SSH into server and build tgBotService
uses: appleboy/ssh-action@master
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/deploy_user_service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ jobs:
script: |
echo "Building userService on server..."
cd /home/xyl1gan4eg/myJavaProjects/weatherProject/userService
mvn test
mvn clean install
echo "Build completed."
Expand Down
21 changes: 21 additions & 0 deletions tgBotService/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,27 @@
</excludes>
</configuration>
</plugin>

<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.6</version>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>test</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>

</plugins>
</build>

Expand Down

0 comments on commit 22c29eb

Please sign in to comment.