Skip to content

Commit 6315d67

Browse files
Merge pull request #18 from mohammadzainabbas/zain
Zain
2 parents 090750d + e17662e commit 6315d67

File tree

6 files changed

+8
-23
lines changed

6 files changed

+8
-23
lines changed

.github/workflows/exercise_1.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@ jobs:
3131
distribution: 'temurin'
3232
cache: maven
3333

34-
- name: Compile Project
35-
run: mvn compile
36-
37-
- name: Run Project
34+
- name: Build and Run Project
3835
run: sh scripts/build_n_run.sh exercise1
3936
shell: bash

.github/workflows/exercise_2.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,7 @@ jobs:
3030
java-version: ${{ matrix.java-version }}
3131
distribution: 'temurin'
3232
cache: maven
33-
34-
- name: Compile Project
35-
run: mvn compile
36-
37-
- name: Run Project
33+
34+
- name: Build and Run Project
3835
run: sh scripts/build_n_run.sh exercise2
3936
shell: bash

.github/workflows/exercise_3.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@ jobs:
3131
distribution: 'temurin'
3232
cache: maven
3333

34-
- name: Compile Project
35-
run: mvn compile
36-
37-
- name: Run Project
34+
- name: Build and Run Project
3835
run: sh scripts/build_n_run.sh exercise3
3936
shell: bash

.github/workflows/exercise_4.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@ jobs:
3131
distribution: 'temurin'
3232
cache: maven
3333

34-
- name: Compile Project
35-
run: mvn compile
36-
37-
- name: Run Project
34+
- name: Build and Run Project
3835
run: sh scripts/build_n_run.sh exercise4
3936
shell: bash

.github/workflows/exercise_4_warmup.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@ jobs:
3131
distribution: 'temurin'
3232
cache: maven
3333

34-
- name: Compile Project
35-
run: mvn compile
36-
37-
- name: Run Project
34+
- name: Build and Run Project
3835
run: sh scripts/build_n_run.sh exercise4_warmup
3936
shell: bash

scripts/build_n_run.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#! /usr/bin/bash
22
rm -r target | echo "No target directory found"
3-
# mvn compile
4-
mvn exec:java -Dexec.mainClass=Main -Dexec.args="$1"
3+
mvn compile
4+
mvn exec:java -Dexec.mainClass=Main -Dexec.args="'$1'"

0 commit comments

Comments
 (0)