forked from oppia/oppia
-
Notifications
You must be signed in to change notification settings - Fork 0
74 lines (73 loc) · 2.88 KB
/
e2e_user_features_and_library.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
71
72
73
74
name: End-to-End tests
on:
push:
branches:
- develop
- release-*
pull_request:
branches:
- develop
- release-*
jobs:
e2e_user_features_and_library:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-18.04]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.7'
architecture: 'x64'
- uses: ./.github/actions/merge
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: /home/runner/work/oppia/yarn_cache
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- uses: ./.github/actions/install-oppia-dependencies
- id: check-risk
name: Check if PR is low-risk
uses: ./.github/actions/check-if-pr-is-low-risk
- name: Install chrome
if: ${{ steps.check-risk.outputs.is-low-risk != 0 }}
run: python -m scripts.install_chrome_for_ci
- name: Install ffmpeg
if: ${{ steps.check-risk.outputs.is-low-risk != 0 }}
run: sudo apt install ffmpeg
- name: Run Library E2E Test
if: ${{ steps.check-risk.outputs.is-low-risk != 0 }}
run: xvfb-run -a --server-args="-screen 0, 1285x1000x24" python -m scripts.run_e2e_tests --suite="library" --prod_env
env:
VIDEO_RECORDING_IS_ENABLED: 0
- name: Run e2e preferences test
if: ${{ steps.check-risk.outputs.is-low-risk != 0 }}
run: xvfb-run -a --server-args="-screen 0, 1285x1000x24" python -m scripts.run_e2e_tests --skip-install --skip-build --suite="preferences" --prod_env
env:
VIDEO_RECORDING_IS_ENABLED: 0
- name: Run e2e subscriptions test
if: ${{ steps.check-risk.outputs.is-low-risk != 0 }}
run: xvfb-run -a --server-args="-screen 0, 1285x1000x24" python -m scripts.run_e2e_tests --skip-install --skip-build --suite="subscriptions" --prod_env
env:
VIDEO_RECORDING_IS_ENABLED: 0
- name: Run e2e wipeout test
if: ${{ steps.check-risk.outputs.is-low-risk != 0 }}
run: xvfb-run -a --server-args="-screen 0, 1285x1000x24" python -m scripts.run_e2e_tests --skip-install --skip-build --suite="wipeout" --prod_env
env:
VIDEO_RECORDING_IS_ENABLED: 0
- name: Uploading protractor-video as Artifacts
if: ${{ steps.check-risk.outputs.is-low-risk != 0 && always() }}
uses: actions/upload-artifact@v2
with:
name: protractor-video
path: /home/runner/work/oppia/protractor-video
- name: Checking Memory Usage
if: ${{ always() }}
run: cat /sys/fs/cgroup/memory/memory.max_usage_in_bytes