Skip to content

Commit

Permalink
chore: adds workflow to check lesson_02 quiz answers on PRs
Browse files Browse the repository at this point in the history
Signed-off-by: Anthony D. Mays <anthony@morganlatimer.com>
  • Loading branch information
anthonydmays committed Mar 1, 2024
1 parent a28dffc commit 49612de
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/lesson2_quiz.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Check Lesson2 Quiz on Pull Request

on:
pull-request:
branches: [ "main" ]
paths:
- "lesson_02/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 with Gradle Wrapper
working-directory: ./lesson_02/quiz
run: ./gradlew check

0 comments on commit 49612de

Please sign in to comment.