Skip to content

Commit bec878b

Browse files
authored
chore: fixes build actions (#689)
* chore: adds more build checks Signed-off-by: Anthony D. Mays <[email protected]> * chore: adds pr checks for fullstack demos. * chore: ensures actions run when config is modded Signed-off-by: Anthony D. Mays <[email protected]> * chore: adds env variables for build Signed-off-by: Anthony D. Mays <[email protected]> * chore: fix build action Signed-off-by: Anthony D. Mays <[email protected]> * chore: tries to fix env vars Signed-off-by: Anthony D. Mays <[email protected]> * chore: tries to fix env vars Signed-off-by: Anthony D. Mays <[email protected]> --------- Signed-off-by: Anthony D. Mays <[email protected]>
1 parent a4375a3 commit bec878b

File tree

3 files changed

+82
-3
lines changed

3 files changed

+82
-3
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Check Fullstack Demo Java Pull Request
2+
3+
on:
4+
pull_request:
5+
branches: [ "main" ]
6+
paths:
7+
- ".github/workflows/check_fullstack_demo_java_pr.yaml"
8+
- "lib/java/fullstack_demo/**"
9+
10+
jobs:
11+
build:
12+
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: read
16+
pull-requests: write
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
21+
- name: Set up JDK
22+
uses: actions/setup-java@v4
23+
with:
24+
java-version: '21'
25+
distribution: 'temurin'
26+
27+
- name: Build Fullstack Demo with Java
28+
working-directory: ./lib/java/fullstack_demo
29+
env:
30+
CLERK_PERISHABLE_KEY: 12345
31+
CLERK_SECRET_KEY: 12345
32+
run: ./gradlew check
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Check Fullstack Demo TS Pull Request
2+
3+
on:
4+
pull_request:
5+
branches: [ "main" ]
6+
paths:
7+
- ".github/workflows/check_fullstack_demo_ts_pr.yaml"
8+
- "lib/typescript/fullstack_demo/**"
9+
10+
jobs:
11+
build:
12+
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: read
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Use Node.js
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: '20.x'
24+
25+
- name: Build Fullstack Demo with Node.js
26+
working-directory: ./lib/typescript/fullstack_demo
27+
env:
28+
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY: ${{ secrets.NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY }}
29+
run: |
30+
npm ci
31+
npm run build

.github/workflows/check_push.yml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches: [ "main" ]
66
paths:
7+
- ".github/workflows/check_push.yml"
78
- "lib/**"
89
- "lesson_02/quiz/**"
910
- "lesson_03/quiz/**"
@@ -21,10 +22,9 @@ on:
2122
- "lesson_15/tdd/**"
2223
- "lesson_16/objects/**"
2324
- "lesson_17/bank/**"
24-
25+
- "lesson_26/api/**"
2526
jobs:
2627
build:
27-
2828
runs-on: ubuntu-latest
2929
permissions:
3030
contents: read
@@ -142,10 +142,26 @@ jobs:
142142
working-directory: ./lesson_17/bank
143143
run: ./gradlew check
144144

145+
- name: Build Lesson 26 with Java
146+
working-directory: ./lesson_26/api/java
147+
run: ./gradlew check
148+
149+
- name: Build Lesson 26 with Node.js
150+
working-directory: ./lesson_26/api/javascript/api_app
151+
run: |
152+
npm ci
153+
npm run test
154+
145155
- name: Build Fullstack Demo with Java
146156
working-directory: ./lib/java/fullstack_demo
157+
env:
158+
CLERK_PERISHABLE_KEY: 12345
147159
run: ./gradlew check
148160

149161
- name: Build Fullstack Demo with Node.js
150162
working-directory: ./lib/typescript/fullstack_demo
151-
run: npm ci
163+
env:
164+
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY: ${{ secrets.NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY }}
165+
run: |
166+
npm ci
167+
npm run build

0 commit comments

Comments
 (0)