-
Notifications
You must be signed in to change notification settings - Fork 68
50 lines (50 loc) · 1.48 KB
/
classroom.yml
File metadata and controls
50 lines (50 loc) · 1.48 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
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: Checkout code
uses: actions/checkout@v5
- name: Compilation Check
id: compilation-check
uses: classroom-resources/autograding-command-grader@v1
with:
test-name: Compilation Check
setup-command: ''
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
setup-command: ''
command: mvn - ntp test -DBasicTest
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
setup-command: ''
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