Skip to content

Commit

Permalink
chore: add build checks for lesson_13
Browse files Browse the repository at this point in the history
Signed-off-by: Anthony D. Mays <[email protected]>
  • Loading branch information
anthonydmays committed Oct 23, 2024
1 parent 38eeccb commit bcbc31f
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/check_lesson_13_java_pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Check Lesson 13 Java Pull Request

on:
pull_request:
branches: [ "main" ]
paths:
- "lesson_13/maps_java/**"

jobs:
build:

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

steps:
- uses: actions/checkout@v4

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

- name: Build Lesson 13 with Java
working-directory: ./lesson_13/maps_java
run: ./gradlew check
28 changes: 28 additions & 0 deletions .github/workflows/check_lesson_13_ts_pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Check Lesson 13 TS Pull Request

on:
pull_request:
branches: [ "main" ]
paths:
- "lesson_13/maps_ts/**"

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 Lesson 13 with Node.js
working-directory: ./lesson_13/maps_ts
run: |
npm ci
npm run check

0 comments on commit bcbc31f

Please sign in to comment.