forked from OpenUOM/Capstone-Project-Tasks
-
Notifications
You must be signed in to change notification settings - Fork 0
189 lines (189 loc) · 7.84 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
name: Autograding Tests
'on':
- workflow_dispatch
- 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: Backend List Teachers
id: backend-list-teachers
uses: classroom-resources/autograding-command-grader@v1
with:
test-name: Backend List Teachers
setup-command: npm install
command: npm test -- -t "GET /listTeachers should show all teachers"
timeout: 10
max-score: 10
- name: Backend Add Teacher
id: backend-add-teacher
uses: classroom-resources/autograding-command-grader@v1
with:
test-name: Backend Add Teacher
setup-command: npm install
command: npm test -- -t "POST /addTeacher should show a newly added teacher"
timeout: 10
max-score: 10
- name: Backend Edit Teacher
id: backend-edit-teacher
uses: classroom-resources/autograding-command-grader@v1
with:
test-name: Backend Edit Teacher
setup-command: npm install
command: npm test -- -t "POST /editTeacher should show a newly added teacher"
timeout: 10
max-score: 10
- name: Backend Delete Teacher
id: backend-delete-teacher
uses: classroom-resources/autograding-command-grader@v1
with:
test-name: Backend Delete Teacher
setup-command: npm install
command: npm test -- -t "POST /deleteTeacher should delete a teacher"
timeout: 10
max-score: 10
- name: Backend List Students
id: backend-list-students
uses: classroom-resources/autograding-command-grader@v1
with:
test-name: Backend List Students
setup-command: npm install
command: npm test -- -t "GET /listStudents should show all students"
timeout: 10
max-score: 10
- name: Backend Add Student
id: backend-add-student
uses: classroom-resources/autograding-command-grader@v1
with:
test-name: Backend Add Student
setup-command: npm install
command: npm test -- -t "POST /addStudent should show a newly added student"
timeout: 10
max-score: 10
- name: Backend Edit Student
id: backend-edit-student
uses: classroom-resources/autograding-command-grader@v1
with:
test-name: Backend Edit Student
setup-command: npm install
command: npm test -- -t "POST /editStudent should edit a Student"
timeout: 10
max-score: 10
- name: Backend Delete Student
id: backend-delete-student
uses: classroom-resources/autograding-command-grader@v1
with:
test-name: Backend Delete Student
setup-command: npm install
command: npm test -- -t "POST /deleteStudent should delete a student"
timeout: 10
max-score: 10
- name: Dummy Test
id: dummy-test
uses: classroom-resources/autograding-command-grader@v1
with:
test-name: Dummy Test
setup-command: npm install
command: file=./test/dummy.test.js npm run test --prefix ./frontend
timeout: 10
- name: Frontend Add Student
id: frontend-add-student
uses: classroom-resources/autograding-command-grader@v1
with:
test-name: Frontend Add Student
setup-command: npm install
command: file=./test/student-add.test.js npm run test --prefix ./frontend
timeout: 10
max-score: 10
- name: Frontend Delete Student
id: frontend-delete-student
uses: classroom-resources/autograding-command-grader@v1
with:
test-name: Frontend Delete Student
setup-command: npm install
command: file=./test/student-delete.test.js npm run test --prefix ./frontend
timeout: 10
max-score: 10
- name: Frontend Edit Student
id: frontend-edit-student
uses: classroom-resources/autograding-command-grader@v1
with:
test-name: Frontend Edit Student
setup-command: npm install
command: file=./test/student-edit.test.js npm run test --prefix ./frontend
timeout: 10
max-score: 10
- name: Frontend Search Student
id: frontend-search-student
uses: classroom-resources/autograding-command-grader@v1
with:
test-name: Frontend Search Student
setup-command: npm install
command: file=./test/student-search.test.js npm run test --prefix ./frontend
timeout: 10
max-score: 10
- name: Frontend Add Teacher
id: frontend-add-teacher
uses: classroom-resources/autograding-command-grader@v1
with:
test-name: Frontend Add Teacher
setup-command: npm install
command: file=./test/teacher-add.test.js npm run test --prefix ./frontend
timeout: 10
max-score: 10
- name: Frontend Delete Teacher
id: frontend-delete-teacher
uses: classroom-resources/autograding-command-grader@v1
with:
test-name: Frontend Delete Teacher
setup-command: npm install
command: file=./test/teacher-delete.test.js npm run test --prefix ./frontend
timeout: 10
max-score: 10
- name: Frontend Edit Teacher
id: frontend-edit-teacher
uses: classroom-resources/autograding-command-grader@v1
with:
test-name: Frontend Edit Teacher
setup-command: npm install
command: file=./test/teacher-edit.test.js npm run test --prefix ./frontend
timeout: 10
max-score: 10
- name: Frontend Search Teacher
id: frontend-search-teacher
uses: classroom-resources/autograding-command-grader@v1
with:
test-name: Frontend Search Teacher
setup-command: npm install
command: file=./test/teacher-search.test.js npm run test --prefix ./frontend
timeout: 10
max-score: 10
- name: Autograding Reporter
uses: classroom-resources/autograding-grading-reporter@v1
env:
BACKEND-LIST-TEACHERS_RESULTS: "${{steps.backend-list-teachers.outputs.result}}"
BACKEND-ADD-TEACHER_RESULTS: "${{steps.backend-add-teacher.outputs.result}}"
BACKEND-EDIT-TEACHER_RESULTS: "${{steps.backend-edit-teacher.outputs.result}}"
BACKEND-DELETE-TEACHER_RESULTS: "${{steps.backend-delete-teacher.outputs.result}}"
BACKEND-LIST-STUDENTS_RESULTS: "${{steps.backend-list-students.outputs.result}}"
BACKEND-ADD-STUDENT_RESULTS: "${{steps.backend-add-student.outputs.result}}"
BACKEND-EDIT-STUDENT_RESULTS: "${{steps.backend-edit-student.outputs.result}}"
BACKEND-DELETE-STUDENT_RESULTS: "${{steps.backend-delete-student.outputs.result}}"
DUMMY-TEST_RESULTS: "${{steps.dummy-test.outputs.result}}"
FRONTEND-ADD-STUDENT_RESULTS: "${{steps.frontend-add-student.outputs.result}}"
FRONTEND-DELETE-STUDENT_RESULTS: "${{steps.frontend-delete-student.outputs.result}}"
FRONTEND-EDIT-STUDENT_RESULTS: "${{steps.frontend-edit-student.outputs.result}}"
FRONTEND-SEARCH-STUDENT_RESULTS: "${{steps.frontend-search-student.outputs.result}}"
FRONTEND-ADD-TEACHER_RESULTS: "${{steps.frontend-add-teacher.outputs.result}}"
FRONTEND-DELETE-TEACHER_RESULTS: "${{steps.frontend-delete-teacher.outputs.result}}"
FRONTEND-EDIT-TEACHER_RESULTS: "${{steps.frontend-edit-teacher.outputs.result}}"
FRONTEND-SEARCH-TEACHER_RESULTS: "${{steps.frontend-search-teacher.outputs.result}}"
with:
runners: backend-list-teachers,backend-add-teacher,backend-edit-teacher,backend-delete-teacher,backend-list-students,backend-add-student,backend-edit-student,backend-delete-student,dummy-test,frontend-add-student,frontend-delete-student,frontend-edit-student,frontend-search-student,frontend-add-teacher,frontend-delete-teacher,frontend-edit-teacher,frontend-search-teacher