Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testing #18

Merged
merged 1 commit into from
Sep 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/BuildAndTestSource.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Test with Maven
if: github.event_name == 'pull_request' && github.event.action != 'closed'
run: mvn test
- name: Set up SSH Key
run: |
Expand All @@ -42,9 +43,9 @@ jobs:
echo "Switching to application directory"
cd springrolls
echo "Stopping the existing application"
pkill -f "java -jar springrolls-0.0.1-SNAPSHOT.jar"
pkill -f "java -jar ${{ secrets.TARGET_DIR }}/springrolls-0.0.1-SNAPSHOT.jar"
echo "Start the new version of the application"
nohup java -jar springrolls-0.0.1-SNAPSHOT.jar > /dev/null 2>&1 &
nohup java -jar ${{ secrets.TARGET_DIR }}/springrolls-0.0.1-SNAPSHOT.jar > /dev/null 2>&1 &
echo "Application Started!!!"
exit
EOF
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
public class GreetingController {

@GetMapping("/greeting")
public String greeting(@RequestParam(name="name", required=false, defaultValue="World!!") String name, Model model) {
public String greeting(@RequestParam(name="name", required=false, defaultValue="World!") String name, Model model) {
model.addAttribute("name", name);
return "greeting";
}
Expand Down