Skip to content

Commit b6c1fa5

Browse files
GitHub Classroom Autograding Workflow
1 parent 723d42b commit b6c1fa5

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed

.github/workflows/classroom.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Autograding Tests
2+
'on':
3+
- push
4+
- repository_dispatch
5+
permissions:
6+
checks: write
7+
actions: read
8+
contents: read
9+
jobs:
10+
run-autograding-tests:
11+
runs-on: ubuntu-latest
12+
if: github.actor != 'github-classroom[bot]'
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
- name: Correct Project Structure
17+
id: correct-project-structure
18+
uses: classroom-resources/autograding-command-grader@v1
19+
with:
20+
test-name: Correct Project Structure
21+
setup-command: ''
22+
command: "./.csse6400/bin/validate_structure.sh"
23+
timeout: 5
24+
max-score: 25
25+
- name: Clean Git Repository
26+
id: clean-git-repository
27+
uses: classroom-resources/autograding-command-grader@v1
28+
with:
29+
test-name: Clean Git Repository
30+
setup-command: ''
31+
command: "./.csse6400/bin/clean_repository.sh"
32+
timeout: 5
33+
max-score: 25
34+
- name: Docker
35+
id: docker
36+
uses: classroom-resources/autograding-command-grader@v1
37+
with:
38+
test-name: Docker
39+
setup-command: ''
40+
command: "./.csse6400/bin/docker.sh"
41+
timeout: 8
42+
max-score: 25
43+
- name: Docker Compose
44+
id: docker-compose
45+
uses: classroom-resources/autograding-command-grader@v1
46+
with:
47+
test-name: Docker Compose
48+
setup-command: ''
49+
command: "./.csse6400/bin/docker-compose.sh"
50+
timeout: 10
51+
max-score: 25
52+
- name: Autograding Reporter
53+
uses: classroom-resources/autograding-grading-reporter@v1
54+
env:
55+
CORRECT-PROJECT-STRUCTURE_RESULTS: "${{steps.correct-project-structure.outputs.result}}"
56+
CLEAN-GIT-REPOSITORY_RESULTS: "${{steps.clean-git-repository.outputs.result}}"
57+
DOCKER_RESULTS: "${{steps.docker.outputs.result}}"
58+
DOCKER-COMPOSE_RESULTS: "${{steps.docker-compose.outputs.result}}"
59+
with:
60+
runners: correct-project-structure,clean-git-repository,docker,docker-compose

0 commit comments

Comments
 (0)