Sync tests for practice exercise allergies
(#2467)
#1220
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
# This workflow will build a Java project with Gradle | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle | |
name: Java CI with Gradle | |
on: [push, pull_request, workflow_dispatch] | |
defaults: | |
run: | |
working-directory: exercises | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 | |
- name: Set up JDK 1.17 | |
uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0 | |
with: | |
java-version: 17 | |
distribution: "temurin" | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Check if tests compile cleanly with starter sources | |
run: ./gradlew compileStarterTestJava --continue | |
- name: Run checkstyle | |
run: ./gradlew check --exclude-task test --continue | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 | |
- name: Set up JDK 1.17 | |
uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0 | |
with: | |
java-version: 17 | |
distribution: "temurin" | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Test all reference implementations with Gradle | |
run: ./gradlew test --continue |