|
1 | 1 | name: Autograding Tests |
2 | 2 | 'on': |
3 | | -- push |
4 | | -- repository_dispatch |
| 3 | + - push |
| 4 | + - repository_dispatch |
| 5 | + |
5 | 6 | permissions: |
6 | 7 | checks: write |
7 | 8 | actions: read |
8 | 9 | contents: read |
| 10 | + |
9 | 11 | jobs: |
10 | 12 | run-autograding-tests: |
11 | 13 | runs-on: ubuntu-latest |
12 | 14 | if: github.actor != 'github-classroom[bot]' |
13 | 15 | steps: |
14 | | - - name: Checkout code |
15 | | - uses: actions/checkout@v4 |
16 | | - - name: Compilation Check |
17 | | - id: compilation-check |
18 | | - uses: classroom-resources/autograding-command-grader@v1 |
19 | | - with: |
20 | | - test-name: Compilation Check |
21 | | - setup-command: '' |
22 | | - command: mvn -ntp compile |
23 | | - timeout: 10 |
24 | | - max-score: 1 |
25 | | - - name: Basic Tests |
26 | | - id: basic-tests |
27 | | - uses: classroom-resources/autograding-command-grader@v1 |
28 | | - with: |
29 | | - test-name: Basic Tests |
30 | | - setup-command: '' |
31 | | - command: mvn - ntp test -DBasicTest |
32 | | - timeout: 10 |
33 | | - max-score: 1 |
34 | | - - name: Edge Case Tests |
35 | | - id: edge-case-tests |
36 | | - uses: classroom-resources/autograding-command-grader@v1 |
37 | | - with: |
38 | | - test-name: Edge Case Tests |
39 | | - setup-command: '' |
40 | | - command: mvn -ntp test -Dtest=EdgeCaseTest |
41 | | - timeout: 10 |
42 | | - max-score: 1 |
43 | | - - name: Autograding Reporter |
44 | | - uses: classroom-resources/autograding-grading-reporter@v1 |
45 | | - env: |
46 | | - COMPILATION-CHECK_RESULTS: "${{steps.compilation-check.outputs.result}}" |
47 | | - BASIC-TESTS_RESULTS: "${{steps.basic-tests.outputs.result}}" |
48 | | - EDGE-CASE-TESTS_RESULTS: "${{steps.edge-case-tests.outputs.result}}" |
49 | | - with: |
50 | | - runners: compilation-check,basic-tests,edge-case-tests |
| 16 | + - name: Set up Java 25 |
| 17 | + uses: actions/setup-java@v5 |
| 18 | + with: |
| 19 | + distribution: 'temurin' |
| 20 | + java-version: '25' |
| 21 | + |
| 22 | + - name: Checkout code |
| 23 | + uses: actions/checkout@v5 |
| 24 | + |
| 25 | + - name: Compilation Check |
| 26 | + id: compilation-check |
| 27 | + uses: classroom-resources/autograding-command-grader@v1 |
| 28 | + with: |
| 29 | + test-name: Compilation Check |
| 30 | + command: mvn -ntp compile |
| 31 | + timeout: 10 |
| 32 | + max-score: 1 |
| 33 | + |
| 34 | + - name: Basic Tests |
| 35 | + id: basic-tests |
| 36 | + uses: classroom-resources/autograding-command-grader@v1 |
| 37 | + with: |
| 38 | + test-name: Basic Tests |
| 39 | + command: mvn -ntp test -Dtest=BasicTest |
| 40 | + timeout: 10 |
| 41 | + max-score: 1 |
| 42 | + |
| 43 | + - name: Edge Case Tests |
| 44 | + id: edge-case-tests |
| 45 | + uses: classroom-resources/autograding-command-grader@v1 |
| 46 | + with: |
| 47 | + test-name: Edge Case Tests |
| 48 | + command: mvn -ntp test -Dtest=EdgeCaseTest |
| 49 | + timeout: 10 |
| 50 | + max-score: 1 |
| 51 | + |
| 52 | + - name: Autograding Reporter |
| 53 | + uses: classroom-resources/autograding-grading-reporter@v1 |
| 54 | + env: |
| 55 | + COMPILATION-CHECK_RESULTS: "${{steps.compilation-check.outputs.result}}" |
| 56 | + BASIC-TESTS_RESULTS: "${{steps.basic-tests.outputs.result}}" |
| 57 | + EDGE-CASE-TESTS_RESULTS: "${{steps.edge-case-tests.outputs.result}}" |
| 58 | + with: |
| 59 | + runners: compilation-check,basic-tests,edge-case-tests |
0 commit comments