Update autograding workflow #40
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: Autograding Tests | |
| 'on': | |
| - push | |
| - repository_dispatch | |
| permissions: | |
| checks: write | |
| actions: read | |
| contents: read | |
| jobs: | |
| run-autograding-tests: | |
| runs-on: ubuntu-latest | |
| if: github.actor != 'github-classroom[bot]' | |
| steps: | |
| - name: Set up Java 25 | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '25' | |
| - name: Checkout code | |
| uses: actions/checkout@v5 | |
| - name: Compilation Check | |
| id: compilation-check | |
| uses: classroom-resources/autograding-command-grader@v1 | |
| with: | |
| test-name: Compilation Check | |
| command: mvn -ntp compile | |
| timeout: 10 | |
| max-score: 1 | |
| - name: Basic Tests | |
| id: basic-tests | |
| uses: classroom-resources/autograding-command-grader@v1 | |
| with: | |
| test-name: Basic Tests | |
| command: mvn -ntp test -Dtest=BasicTest | |
| timeout: 10 | |
| max-score: 1 | |
| - name: Edge Case Tests | |
| id: edge-case-tests | |
| uses: classroom-resources/autograding-command-grader@v1 | |
| with: | |
| test-name: Edge Case Tests | |
| command: mvn -ntp test -Dtest=EdgeCaseTest | |
| timeout: 10 | |
| max-score: 1 | |
| - name: Autograding Reporter | |
| uses: classroom-resources/autograding-grading-reporter@v1 | |
| env: | |
| COMPILATION-CHECK_RESULTS: "${{steps.compilation-check.outputs.result}}" | |
| BASIC-TESTS_RESULTS: "${{steps.basic-tests.outputs.result}}" | |
| EDGE-CASE-TESTS_RESULTS: "${{steps.edge-case-tests.outputs.result}}" | |
| with: | |
| runners: compilation-check,basic-tests,edge-case-tests |