|
|
|
|
@ -80,7 +80,7 @@ jobs:
|
|
|
|
|
strategy:
|
|
|
|
|
fail-fast: false
|
|
|
|
|
matrix:
|
|
|
|
|
specs: ['actions_tasks', 'actions_tasks2', 'actions_tasks3', 'actions_objects', 'actions_objects2', 'actions_users', 'actions_projects_models', 'canvas3d_functionality', 'issues_prs', 'issues_prs2']
|
|
|
|
|
specs: ['actions_tasks', 'actions_tasks2', 'actions_tasks3', 'actions_objects', 'actions_objects2', 'actions_users', 'actions_projects_models', 'canvas3d_functionality', 'canvas3d_functionality_2', 'issues_prs', 'issues_prs2']
|
|
|
|
|
steps:
|
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
- name: Getting SHA from the default branch
|
|
|
|
|
@ -165,17 +165,17 @@ jobs:
|
|
|
|
|
cd ./tests
|
|
|
|
|
npm ci
|
|
|
|
|
if [[ ${{ github.ref }} == 'refs/heads/develop' ]]; then
|
|
|
|
|
if [[ ${{ matrix.specs }} != 'canvas3d_functionality' ]]; then
|
|
|
|
|
npx cypress run --headless --browser chrome --spec 'cypress/integration/${{ matrix.specs }}/**/*.js'
|
|
|
|
|
else
|
|
|
|
|
if [ ${{ matrix.specs }} == 'canvas3d_functionality' ] || [ ${{ matrix.specs }} == 'canvas3d_functionality_2' ]; then
|
|
|
|
|
npx cypress run --browser chrome --config-file cypress_canvas3d.json --spec 'cypress/integration/${{ matrix.specs }}/**/*.js'
|
|
|
|
|
else
|
|
|
|
|
npx cypress run --headless --browser chrome --spec 'cypress/integration/${{ matrix.specs }}/**/*.js'
|
|
|
|
|
fi
|
|
|
|
|
mv ./.nyc_output/out.json ./.nyc_output/out_${{ matrix.specs }}.json
|
|
|
|
|
else
|
|
|
|
|
if [[ ${{ matrix.specs }} != 'canvas3d_functionality' ]]; then
|
|
|
|
|
npx cypress run --headless --browser chrome --env coverage=false --spec 'cypress/integration/${{ matrix.specs }}/**/*.js'
|
|
|
|
|
else
|
|
|
|
|
if [ ${{ matrix.specs }} == 'canvas3d_functionality' ] || [ ${{ matrix.specs }} == 'canvas3d_functionality_2' ]; then
|
|
|
|
|
npx cypress run --browser chrome --env coverage=false --config-file cypress_canvas3d.json --spec 'cypress/integration/${{ matrix.specs }}/**/*.js'
|
|
|
|
|
else
|
|
|
|
|
npx cypress run --headless --browser chrome --env coverage=false --spec 'cypress/integration/${{ matrix.specs }}/**/*.js'
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
- name: Creating a log file from "cvat" container logs
|
|
|
|
|
|