-
Notifications
You must be signed in to change notification settings - Fork 1
/
14333.yml
42 lines (40 loc) · 1.25 KB
/
14333.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
name: Ruby Test Runner
on:
push:
branches: ["submission-*"]
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: ["3.1.1"]
steps:
- name: Check out the parent repository with student submission data
uses: actions/checkout@v2
- name: Check out the repository with test scripts
uses: actions/checkout@v2
with:
repository: "pupilfirst/vta-test-scripts"
path: scripts
- name: Install Ruby dependencies
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
working-directory: scripts/ev-201
bundler-cache: true
- name: Copy submission data to testing directory
id: copy-student-file
continue-on-error: true
run: |
cp ./submission.json scripts/ev-201
- name: Run tests on student submission
working-directory: scripts/ev-201
run: |
ruby 14333.rb
- name: Grade the submission based on test results
uses: pupilfirst/grade-action@v1
with:
report_file_path: "scripts/ev-201/report.json"
env:
REVIEW_END_POINT: ${{ secrets.REVIEW_END_POINT }}
REVIEW_BOT_USER_TOKEN: ${{ secrets.REVIEW_BOT_USER_TOKEN }}