forked from comp426-2022-fall/a00
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (45 loc) · 1.5 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
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: Check for log file
id: check-for-log-file
uses: classroom-resources/autograding-io-grader@v1
with:
test-name: Check for log file
setup-command: ''
command: ls
input: ''
expected-output: install_check.log
comparison-method: contains
timeout: 10
max-score: 50000
- name: Software Version
id: software-version
uses: classroom-resources/autograding-command-grader@v1
with:
test-name: Software Version
setup-command: ''
command: printf "GH Actions runner software versions\n\n"; printf "SYSTEM:\t$(uname
-a)\n"; printf "SHELL:\t[${SHELL}]\n"; printf "GIT:\t[$(which git)] $(git
--version)\n"; printf "CURL:\t[$(which curl)] $(curl --version | head -n
1)\n"; printf "NODE:\t[$(which node)] node $(node -v)\n"
timeout: 10
- name: Autograding Reporter
uses: classroom-resources/autograding-grading-reporter@v1
env:
CHECK-FOR-LOG-FILE_RESULTS: "${{steps.check-for-log-file.outputs.result}}"
SOFTWARE-VERSION_RESULTS: "${{steps.software-version.outputs.result}}"
with:
runners: check-for-log-file,software-version