File tree Expand file tree Collapse file tree 2 files changed +52
-0
lines changed Expand file tree Collapse file tree 2 files changed +52
-0
lines changed Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change 5
5
branches : [ "main" ]
6
6
paths :
7
7
- " lib/**"
8
+ - " lesson_02/quiz/**"
8
9
9
10
jobs :
10
11
build :
26
27
- name : Setup Gradle
27
28
uses : gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5 # v3.1.0
28
29
30
+ - name : Use Node.js
31
+ uses : actions/setup-node@v4
32
+ with :
33
+ node-version : ' 20.x'
34
+
29
35
- name : Build Shared Lib with Gradle Wrapper
30
36
working-directory : ./lib/java/codedifferently-instructional
31
37
run : ./gradlew check
32
38
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
+
33
44
You can’t perform that action at this time.
0 commit comments