Skip to content

Commit 11832ec

Browse files
Added all workflows
1 parent f6c694d commit 11832ec

File tree

4 files changed

+156
-0
lines changed

4 files changed

+156
-0
lines changed

.github/workflows/exercise_2.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Exercise 2
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
paths-ignore:
7+
- '**.md'
8+
branches:
9+
- main
10+
11+
jobs:
12+
build:
13+
runs-on: ${{ matrix.os }}
14+
15+
strategy:
16+
17+
fail-fast: false
18+
matrix:
19+
os: [ubuntu-latest]
20+
java-version: ["11"]
21+
22+
steps:
23+
24+
- name: Checkout current repo
25+
uses: actions/checkout@v3
26+
27+
- name: Setup JDK 11 (on "${{ matrix.os }}")
28+
uses: actions/setup-java@v3
29+
with:
30+
java-version: ${{ matrix.java-version }}
31+
distribution: 'temurin'
32+
cache: maven
33+
34+
- name: Compile Project
35+
run: mvn compile
36+
37+
- name: Run Project
38+
run: sh scripts/build_n_run.sh exercise2
39+
shell: bash

.github/workflows/exercise_3.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Exercise 3
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
paths-ignore:
7+
- '**.md'
8+
branches:
9+
- main
10+
11+
jobs:
12+
build:
13+
runs-on: ${{ matrix.os }}
14+
15+
strategy:
16+
17+
fail-fast: false
18+
matrix:
19+
os: [ubuntu-latest]
20+
java-version: ["11"]
21+
22+
steps:
23+
24+
- name: Checkout current repo
25+
uses: actions/checkout@v3
26+
27+
- name: Setup JDK 11 (on "${{ matrix.os }}")
28+
uses: actions/setup-java@v3
29+
with:
30+
java-version: ${{ matrix.java-version }}
31+
distribution: 'temurin'
32+
cache: maven
33+
34+
- name: Compile Project
35+
run: mvn compile
36+
37+
- name: Run Project
38+
run: sh scripts/build_n_run.sh exercise3
39+
shell: bash

.github/workflows/exercise_4.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Exercise 4
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
paths-ignore:
7+
- '**.md'
8+
branches:
9+
- main
10+
11+
jobs:
12+
build:
13+
runs-on: ${{ matrix.os }}
14+
15+
strategy:
16+
17+
fail-fast: false
18+
matrix:
19+
os: [ubuntu-latest]
20+
java-version: ["11"]
21+
22+
steps:
23+
24+
- name: Checkout current repo
25+
uses: actions/checkout@v3
26+
27+
- name: Setup JDK 11 (on "${{ matrix.os }}")
28+
uses: actions/setup-java@v3
29+
with:
30+
java-version: ${{ matrix.java-version }}
31+
distribution: 'temurin'
32+
cache: maven
33+
34+
- name: Compile Project
35+
run: mvn compile
36+
37+
- name: Run Project
38+
run: sh scripts/build_n_run.sh exercise4
39+
shell: bash
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Exercise 4 (Warm up)
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
paths-ignore:
7+
- '**.md'
8+
branches:
9+
- main
10+
11+
jobs:
12+
build:
13+
runs-on: ${{ matrix.os }}
14+
15+
strategy:
16+
17+
fail-fast: false
18+
matrix:
19+
os: [ubuntu-latest]
20+
java-version: ["11"]
21+
22+
steps:
23+
24+
- name: Checkout current repo
25+
uses: actions/checkout@v3
26+
27+
- name: Setup JDK 11 (on "${{ matrix.os }}")
28+
uses: actions/setup-java@v3
29+
with:
30+
java-version: ${{ matrix.java-version }}
31+
distribution: 'temurin'
32+
cache: maven
33+
34+
- name: Compile Project
35+
run: mvn compile
36+
37+
- name: Run Project
38+
run: sh scripts/build_n_run.sh exercise4_warmup
39+
shell: bash

0 commit comments

Comments
 (0)