Skip to content

Commit fd3b063

Browse files
GitHub Classroom Autograding Workflow
1 parent bb5b6e0 commit fd3b063

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/classroom.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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: Parser Tests
17+
id: parser-tests
18+
uses: classroom-resources/autograding-command-grader@v1
19+
with:
20+
test-name: Parser Tests
21+
setup-command: "./setup.sh"
22+
command: gradle test
23+
timeout: 10
24+
- name: Autograding Reporter
25+
uses: classroom-resources/autograding-grading-reporter@v1
26+
env:
27+
PARSER-TESTS_RESULTS: "${{steps.parser-tests.outputs.result}}"
28+
with:
29+
runners: parser-tests

0 commit comments

Comments
 (0)