forked from jobtrek/dev-24-javascript-exercise-ex-js-empty
-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (68 loc) · 2.12 KB
/
classroom.yml
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
62
63
64
65
66
67
68
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@v4
- name: Test Conditions
id: test-conditions
uses: classroom-resources/autograding-command-grader@v1
with:
test-name: Test Conditions
setup-command: npm install
command: npm run test run conditions
timeout: 10
max-score: 4
- name: Test strings
id: test-strings
uses: classroom-resources/autograding-command-grader@v1
with:
test-name: Test strings
setup-command: npm install
command: npm run test run strings
timeout: 10
max-score: 4
- name: Test maths
id: test-maths
uses: classroom-resources/autograding-command-grader@v1
with:
test-name: Test maths
setup-command: npm install
command: npm run test run maths
timeout: 10
max-score: 4
- name: Test arrays
id: test-arrays
uses: classroom-resources/autograding-command-grader@v1
with:
test-name: Test arrays
setup-command: npm install
command: npm run test run arrays
timeout: 10
- name: Test objects
id: test-objects
uses: classroom-resources/autograding-command-grader@v1
with:
test-name: Test objects
setup-command: npm install
command: npm run test run objects
timeout: 10
- name: Autograding Reporter
uses: classroom-resources/autograding-grading-reporter@v1
env:
TEST-CONDITIONS_RESULTS: "${{steps.test-conditions.outputs.result}}"
TEST-STRINGS_RESULTS: "${{steps.test-strings.outputs.result}}"
TEST-MATHS_RESULTS: "${{steps.test-maths.outputs.result}}"
TEST-ARRAYS_RESULTS: "${{steps.test-arrays.outputs.result}}"
TEST-OBJECTS_RESULTS: "${{steps.test-objects.outputs.result}}"
with:
runners: test-conditions,test-strings,test-maths,test-arrays,test-objects