-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (50 loc) · 1.36 KB
/
classroom.yml
File metadata and controls
58 lines (50 loc) · 1.36 KB
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
name: GitHub Classroom Workflow
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
name: Autograding
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: docker/setup-buildx-action@v2
# TODO build project
- name: Build images
timeout-minutes: 7
run: docker compose build
- name: Run containers
timeout-minutes: 5
run: |
docker compose up -d
./scripts/wait-script.sh
env:
WAIT_PORTS: 8080,8070,8060
- name: Run API Tests
uses: matt-ball/newman-action@master
timeout-minutes: 3
with:
collection: postman/collection.json
environment: postman/local-env.json
delayRequest: 100
reporters: '[ "cli" ]'
- uses: education/autograding@v1
id: autograder
continue-on-error: true
- name: Github auto grader mark
uses: Romanow/google-sheet-autograder-marker@v1.0
with:
google_token: ${{secrets.GOOGLE_API_KEY}}
sheet_id: ${{ secrets.MICROSERVICES_GOOGLE_SHEET }}
homework_number: 2
user_column: 'D'
column_offset: 'Q'
mark: "'+"
- name: Stop containers
if: always()
continue-on-error: true
run: docker compose down -v