-
Notifications
You must be signed in to change notification settings - Fork 80
70 lines (54 loc) · 1.95 KB
/
functionaltest.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# Github action configuration runs functional test cases and generate artifact's
# Author: Rahul Shukla <[email protected]>
name: Sunbird-Content-Player-Functional-Test
# Trigger the workflow on push or pull request
on: [push, pull_request]
jobs:
build:
runs-on: macOS-latest
strategy:
matrix:
node-version: [10.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install player dependencies
run: |
(cd player && npm install && npm install -g forever)
# - name: Build player preview
# run: |
# (cd player && npm run package-coreplugins -- --env.channel=sunbird && npm run build-preview sunbird)
- name: Start player with fixture stories
run: |
(cd player && forever start app.js)
- name: Install test framework dependencies
run: |
(cd player/public/test/functional_test && yarn install)
- name: Start functional test cases
run: |
(cd player/public/test/functional_test && yarn test)
# - name: Visual regression artifact generation
# uses: actions/upload-artifact@v1
# with:
# name: Visual changes on UI
# path: player/public/test/functional_test/__tests__/__image_snapshots__
# - name: Screenshots artifact generation
# uses: actions/upload-artifact@v1
# with:
# name: Screenshots
# path: player/public/test/functional_test/__tests__/screenshots
- name: Report artifact generation
uses: actions/upload-artifact@v1
with:
name: Report HTML
path: player/public/test/functional_test/testReport
# - name: Player preview artifact generation
# uses: actions/upload-artifact@v1
# with:
# name: Generated Player preview
# path: player/www
env:
CI: true