Skip to content

chore: adds more build checks #688

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/check_fullstack_demo_java_pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Check Fullstack Demo Java Pull Request

on:
pull_request:
branches: [ "main" ]
paths:
- ".github/workflows/check_fullstack_demo_java_pr.yaml"
- "lib/java/fullstack_demo/**"

jobs:
build:

runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write

steps:
- uses: actions/checkout@v4

- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'

- name: Build Fullstack Demo with Java
working-directory: ./lib/java/fullstack_demo
env:
CLERK_PERISHABLE_KEY: 12345
CLERK_SECRET_KEY: 12345
run: ./gradlew check
31 changes: 31 additions & 0 deletions .github/workflows/check_fullstack_demo_ts_pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Check Fullstack Demo TS Pull Request

on:
pull_request:
branches: [ "main" ]
paths:
- ".github/workflows/check_fullstack_demo_ts_pr.yaml"
- "lib/typescript/fullstack_demo/**"

jobs:
build:

runs-on: ubuntu-latest
permissions:
contents: read

steps:
- uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'

- name: Build Fullstack Demo with Node.js
working-directory: ./lib/typescript/fullstack_demo
env:
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY: ${{ secrets.NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY }}
run: |
npm ci
npm run build
22 changes: 19 additions & 3 deletions .github/workflows/check_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches: [ "main" ]
paths:
- ".github/workflows/check_push.yml"
- "lib/**"
- "lesson_02/quiz/**"
- "lesson_03/quiz/**"
Expand All @@ -21,10 +22,9 @@ on:
- "lesson_15/tdd/**"
- "lesson_16/objects/**"
- "lesson_17/bank/**"

- "lesson_26/api/**"
jobs:
build:

runs-on: ubuntu-latest
permissions:
contents: read
Expand Down Expand Up @@ -142,10 +142,26 @@ jobs:
working-directory: ./lesson_17/bank
run: ./gradlew check

- name: Build Lesson 26 with Java
working-directory: ./lesson_26/api/java
run: ./gradlew check

- name: Build Lesson 26 with Node.js
working-directory: ./lesson_26/api/javascript/api_app
run: |
npm ci
npm run test

- name: Build Fullstack Demo with Java
working-directory: ./lib/java/fullstack_demo
env:
CLERK_PERISHABLE_KEY: 12345
run: ./gradlew check

- name: Build Fullstack Demo with Node.js
working-directory: ./lib/typescript/fullstack_demo
run: npm ci
env:
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY: ${{ secrets.NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY }}
run: |
npm ci
npm run build
Loading