Skip to content

Commit 8ee965f

Browse files
authored
chore: separate java build checks from ts (#368)
* chore: separate java build checks from ts Signed-off-by: Anthony D. Mays <[email protected]> * chore: adding new build checks --------- Signed-off-by: Anthony D. Mays <[email protected]>
1 parent 3e8f77b commit 8ee965f

File tree

2 files changed

+28
-12
lines changed

2 files changed

+28
-12
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Check Lesson 11 Pull Request
2+
3+
on:
4+
pull_request:
5+
branches: [ "main" ]
6+
paths:
7+
- "lesson_11/arrays_java/**"
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
permissions:
14+
contents: read
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- name: Set up JDK 17
20+
uses: actions/setup-java@v4
21+
with:
22+
java-version: '17'
23+
distribution: 'temurin'
24+
25+
- name: Build Lesson 11 with Java
26+
working-directory: ./lesson_11/arrays_java
27+
run: ./gradlew check

.github/workflows/check_lesson_11_pr.yaml renamed to .github/workflows/check_lesson_11_ts_pr.yaml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
name: Check Lesson 10 Pull Request
1+
name: Check Lesson 11 Pull Request
22

33
on:
44
pull_request:
55
branches: [ "main" ]
66
paths:
7-
- "lesson_11/arrays_java/**"
87
- "lesson_11/arrays_ts/**"
98

109
jobs:
@@ -17,21 +16,11 @@ jobs:
1716
steps:
1817
- uses: actions/checkout@v4
1918

20-
- name: Set up JDK 17
21-
uses: actions/setup-java@v4
22-
with:
23-
java-version: '17'
24-
distribution: 'temurin'
25-
2619
- name: Use Node.js
2720
uses: actions/setup-node@v4
2821
with:
2922
node-version: '20.x'
3023

31-
- name: Build Lesson 11 with Java
32-
working-directory: ./lesson_11/arrays_java
33-
run: ./gradlew check
34-
3524
- name: Build Lesson 11 with Node.js
3625
working-directory: ./lesson_11/arrays_ts
3726
run: |

0 commit comments

Comments
 (0)