Add practice exercise resistor-color-expert
#134
Workflow file for this run
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: Java | |
on: | |
pull_request: | |
paths: | |
- "**/*.java" | |
- "**/*.gradle" | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
build: | |
name: Check if tests compile cleanly with starter sources | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 | |
- name: Set up JDK 1.17 | |
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 | |
with: | |
java-version: 17 | |
distribution: "temurin" | |
- name: Check if tests compile cleanly with starter sources | |
run: ./gradlew compileStarterTestJava --continue | |
working-directory: exercises | |
lint: | |
name: Lint Java files using Checkstyle | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 | |
- name: Set up JDK 1.17 | |
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 | |
with: | |
java-version: 17 | |
distribution: "temurin" | |
- name: Run checkstyle | |
run: ./gradlew check --exclude-task test --continue | |
working-directory: exercises | |
test: | |
name: Test all exercises using java-test-runner | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 | |
- name: Test all exercises using java-test-runner | |
run: bin/test-with-test-runner | |
- name: Archive test results | |
uses: actions/upload-artifact@1746f4ab65b179e0ea60a494b83293b640dd5bba | |
with: | |
name: test-results | |
path: exercises/**/build/results.json | |
if: failure() |