Skip to content

Commit 3b96f80

Browse files
committed
100% coverage
1 parent 7160a2b commit 3b96f80

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

.github/workflows/demo-workflow.yml

+11
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,15 @@ jobs:
7676
host: ${{ secrets.HOST }}
7777
username: ${{ secrets.SSH_USER }}
7878
password: ${{ secrets.SSH_PASSWORD }}
79+
- name: Run a script on remote server (start the application)
80+
if: always()
81+
uses: fifsky/ssh-action@master
82+
with:
83+
command: |
84+
cd hacene/demo/actions/ && java -jar workflow-github-actions.jar &
85+
host: ${{ secrets.HOST }}
86+
user: ${{ secrets.SSH_USER }}
87+
pass: ${{ secrets.SSH_PASSWORD }}
88+
args: "-tt"
89+
# The & in the command runs the process on background
7990

pom.xml

+16
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
<artifactId>workflow-github-actions</artifactId>
99
<version>1.0-SNAPSHOT</version>
1010

11+
<packaging>jar</packaging>
12+
1113
<properties>
1214
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1315
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
@@ -57,6 +59,20 @@
5759

5860
<build>
5961
<plugins>
62+
<plugin>
63+
<groupId>org.springframework.boot</groupId>
64+
<artifactId>spring-boot-maven-plugin</artifactId>
65+
<version>2.2.6.RELEASE</version>
66+
<executions>
67+
<execution>
68+
<goals>
69+
<goal>build-info</goal>
70+
<goal>repackage</goal>
71+
</goals>
72+
</execution>
73+
</executions>
74+
</plugin>
75+
6076
<plugin>
6177
<groupId>org.apache.maven.plugins</groupId>
6278
<artifactId>maven-compiler-plugin</artifactId>

0 commit comments

Comments
 (0)