-
Notifications
You must be signed in to change notification settings - Fork 68
61 lines (54 loc) · 1.67 KB
/
classroom.yml
File metadata and controls
61 lines (54 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Autograding Tests
'on':
- push
- repository_dispatch
permissions:
checks: write
actions: read
contents: read
pull-requests: write
jobs:
run-autograding-tests:
name: Autograding
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