chore: adds initial project and classpath files for lesson 03 #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check Push | |
on: | |
push: | |
branches: [ "main" ] | |
paths: | |
- "lib/**" | |
- "lesson_02/quiz/**" | |
- "lesson_03/quiz/**" | |
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' | |
# Configure Gradle for optimal use in GiHub Actions, including caching of downloaded dependencies. | |
# See: https://github.com/gradle/actions/blob/main/setup-gradle/README.md | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5 # v3.1.0 | |
- name: Build Lesson 02 with Gradle Wrapper | |
working-directory: ./lesson_02/quiz | |
run: ./gradlew assemble | |
- name: Build Lesson 03 with Gradle Wrapper | |
working-directory: ./lesson_03/quiz | |
run: ./gradlew check | |
- name: Build Shared Lib with Gradle Wrapper | |
working-directory: ./lib/java/codedifferently-instructional | |
run: ./gradlew check | |