Skip to content

Commit 16d30f3

Browse files
authored
feat: adds lesson_02 pr actions (#56)
* feat: adds lesson_02 checks Signed-off-by: Anthony D. Mays <[email protected]> * chore: updating labels --------- Signed-off-by: Anthony D. Mays <[email protected]>
1 parent b64f963 commit 16d30f3

File tree

2 files changed

+52
-0
lines changed

2 files changed

+52
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Check Lesson 02 Pull Request
2+
3+
on:
4+
pull_request:
5+
branches: [ "main" ]
6+
paths:
7+
- "lesson_02/quiz/**"
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+
- name: Set up JDK 17
19+
uses: actions/setup-java@v4
20+
with:
21+
java-version: '17'
22+
distribution: 'temurin'
23+
24+
# Configure Gradle for optimal use in GiHub Actions, including caching of downloaded dependencies.
25+
# See: https://github.com/gradle/actions/blob/main/setup-gradle/README.md
26+
- name: Setup Gradle
27+
uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5 # v3.1.0
28+
29+
- name: Use Node.js
30+
uses: actions/setup-node@v4
31+
with:
32+
node-version: '20.x'
33+
34+
- name: Build Shared Lib with Node.js
35+
working-directory: ./lib/typescript/codedifferently-instructional
36+
run: npm ci
37+
38+
- name: Build Lesson 02 with Node.js
39+
working-directory: ./lesson_02/quiz
40+
run: npm ci
41+
run: npm run test

.github/workflows/check_push.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
branches: [ "main" ]
66
paths:
77
- "lib/**"
8+
- "lesson_02/quiz/**"
89

910
jobs:
1011
build:
@@ -26,8 +27,18 @@ jobs:
2627
- name: Setup Gradle
2728
uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5 # v3.1.0
2829

30+
- name: Use Node.js
31+
uses: actions/setup-node@v4
32+
with:
33+
node-version: '20.x'
34+
2935
- name: Build Shared Lib with Gradle Wrapper
3036
working-directory: ./lib/java/codedifferently-instructional
3137
run: ./gradlew check
3238

39+
- name: Build Shared Lib with Node.js
40+
working-directory: ./lib/typescript/codedifferently-instructional
41+
run: npm ci
42+
run: npm run test
43+
3344

0 commit comments

Comments
 (0)