This repository has been archived by the owner on Apr 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
85 lines (73 loc) · 3.22 KB
/
autotest.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
75
76
77
78
79
80
81
82
83
84
85
name: B2B E2E
on:
workflow_dispatch:
pull_request:
branches:
[master, dev]
jobs:
autotests:
runs-on: ubuntu-18.04
env:
VERSION_SUFFIX: "tests"
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Build
id: build
uses: VirtoCommerce/vc-github-actions/build-theme@master
with:
versionSuffix: ${{ env.VERSION_SUFFIX }}
- name: Docker Login
uses: azure/docker-login@v1
with:
login-server: docker.pkg.github.com
username: $GITHUB_ACTOR
password: ${{ secrets.GITHUB_TOKEN }}
- name: Start Containers
uses: VirtoCommerce/vc-github-actions/docker-start-environment@master
with:
platformImage: docker.pkg.github.com/virtocommerce/vc-platform/platform
platformDockerTag: 3.53.0-master-f99e3cec
storefrontImage: docker.pkg.github.com/virtocommerce/vc-demo-storefront/demo-storefront
storefrontDockerTag: 1.10.0-alpha.1012-upstream-dev-672f462a
- name: Restore Dump
uses: VirtoCommerce/vc-github-actions/docker-restore-dump@master
with:
dumpUrl: 'https://devdemovc3.blob.core.windows.net/demosd/qa3.sql'
- name: Install Modules
uses: VirtoCommerce/vc-github-actions/docker-install-modules@master
with:
githubToken: ${{ secrets.REPO_TOKEN }}
manifestUrl: 'https://raw.githubusercontent.com/VirtoCommerce/vc-webstore-deploy/qa/webstore-app/resources/deployment-cm.yaml'
manifestFormat: 'yml'
containerName: 'virtocommerce_vc-platform-web_1'
containerDestination: '/opt/virtocommerce/platform/modules'
sleepAfterRestart: '90000'
- name: Check Installed Modules
uses: VirtoCommerce/vc-github-actions/docker-check-modules@master
- name: Install Theme
uses: VirtoCommerce/vc-github-actions/docker-install-theme@master
with:
artifactPath: ${{ steps.build.outputs.artifactPath }}
containerName: 'virtocommerce_vc-storefront-web_1'
containerDestination: '/opt/virtocommerce/storefront/wwwroot/cms-content/Themes/B2B-store/default'
restartContainer: 'true'
- name: Getting tests
shell: sh
run: git clone https://github.com/VirtoCommerce/vc-quality-gate-katalon.git --branch dev
- name: Katalon Studio Github Action
uses: VirtoCommerce/vc-github-actions/katalon-studio-github-action@master
with:
version: '7.9.1'
projectPath: '${{ github.workspace }}/vc-quality-gate-katalon/platform_storefront.prj'
args: '-noSplash -retry=0 -testSuiteCollectionPath="Test Suites/B2B/B2B-Collection" -browserType="Chrome" -apiKey= ${{ secrets.KATALON_API_KEY }} -g_urlBack="http://localhost:8090/" -g_urlFront="http://localhost:8080/B2B-store/" -executionProfile="B2B-v3-Argo-QA" --config -webui.autoUpdateDrivers=true'
- name: 'Katalon Reports'
if: always()
uses: actions/upload-artifact@v2
with:
name: reports
path: |
vc-quality-gate-katalon/Reports
/home/runner/.katalon/*/Katalon_Studio_Engine_Linux_*/configuration/*.log.
retention-days: 5