Bump DavidAnson/markdownlint-cli2-action from 23.1.0 to 23.2.0 (#3137) #797
This file contains hidden or 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-all: | |
| name: Check if all exercise tests compile cleanly with starter sources | |
| if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd | |
| - name: Set up JDK 25 | |
| uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 | |
| with: | |
| java-version: 25 | |
| distribution: "temurin" | |
| - name: Check if tests compile cleanly with starter sources | |
| run: ./gradlew compileStarterTestJava --continue | |
| working-directory: exercises | |
| build-changed: | |
| name: Check if changed exercise tests compile cleanly with starter sources | |
| if: github.event_name == 'pull_request' | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up JDK 25 | |
| uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 | |
| with: | |
| java-version: 25 | |
| distribution: "temurin" | |
| - name: Check if changed exercise tests compile cleanly | |
| run: bin/build-changed-exercise | |
| lint-all: | |
| name: Lint all exercises using Checkstyle | |
| if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd | |
| - name: Set up JDK 25 | |
| uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 | |
| with: | |
| java-version: 25 | |
| distribution: "temurin" | |
| - name: Run checkstyle | |
| run: ./gradlew check --exclude-task test --continue | |
| working-directory: exercises | |
| lint-changed: | |
| name: Lint changed exercises using Checkstyle | |
| if: github.event_name == 'pull_request' | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up JDK 25 | |
| uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 | |
| with: | |
| java-version: 25 | |
| distribution: "temurin" | |
| - name: Lint changed exercises | |
| run: bin/lint-changed-exercise | |
| test-all: | |
| name: Test all exercises using java-test-runner | |
| if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd | |
| - name: Test all exercises using java-test-runner | |
| run: bin/test-with-test-runner | |
| - name: Print summary | |
| run: | | |
| if [ -f exercises/build/summary.txt ]; then | |
| echo "===== TEST SUMMARY =====" | |
| cat exercises/build/summary.txt | |
| echo "========================" | |
| else | |
| echo "===== ALL TESTS PASSED =====" | |
| echo "No summary file was generated." | |
| echo "=============================" | |
| fi | |
| if: always() | |
| - name: Archive test results | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a | |
| with: | |
| name: test-results | |
| path: exercises/**/build/results.json | |
| if: failure() | |
| test-changed: | |
| name: Test changed exercises using gradlew | |
| if: github.event_name == 'pull_request' | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd | |
| with: | |
| fetch-depth: 0 | |
| - name: Test changed exercises using java-test-runner | |
| run: bin/test-changed-exercise | |
| - name: Print summary | |
| run: | | |
| if [ -f exercises/build/summary.txt ]; then | |
| echo "===== TEST SUMMARY =====" | |
| cat exercises/build/summary.txt | |
| echo "========================" | |
| else | |
| echo "===== ALL TESTS PASSED =====" | |
| echo "No summary file was generated." | |
| echo "=============================" | |
| fi | |
| if: always() | |
| - name: Archive test results | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a | |
| with: | |
| name: test-results | |
| path: | | |
| exercises/**/build/results.txt | |
| exercises/**/build/results.json | |
| if: failure() |