Skip to content

Commit 62b4564

Browse files
authored
chore: adds missing build checks (#91)
Signed-off-by: Anthony D. Mays <[email protected]>
1 parent f64fcf4 commit 62b4564

File tree

2 files changed

+47
-0
lines changed

2 files changed

+47
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Check Lesson 03 Pull Request
2+
3+
on:
4+
pull_request:
5+
branches: [ "main" ]
6+
paths:
7+
- "lesson_03/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+
19+
- name: Use Node.js
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: '20.x'
23+
24+
- name: Build Shared Lib with Node.js
25+
working-directory: ./lib/javascript/codedifferently-instructional
26+
run: npm ci
27+
28+
- name: Build Lesson 03 with Node.js
29+
working-directory: ./lesson_03/quiz
30+
run: |
31+
npm ci
32+
npm run check

.github/workflows/check_push.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ on:
66
paths:
77
- ".github/workflows/check_push.yml"
88
- "lib/**"
9+
- "lesson_02/quiz/**"
10+
- "lesson_03/quiz/**"
911
jobs:
1012
build:
1113
runs-on: ubuntu-latest
@@ -56,3 +58,16 @@ jobs:
5658
run: |
5759
npm ci
5860
npm run test
61+
62+
- name: Build Lesson 02 with Node.js
63+
working-directory: ./lesson_02/quiz
64+
run: |
65+
npm ci
66+
npm run compile
67+
68+
- name: Build Lesson 03 with Node.js
69+
working-directory: ./lesson_03/quiz
70+
run: |
71+
npm ci
72+
npm run compile
73+
npm run lint

0 commit comments

Comments
 (0)