Skip to content

Demo Test Run

Demo Test Run #1219

Workflow file for this run

name: Demo Test Run
on:
workflow_dispatch:
schedule:
- cron: '30 4 * * MON-FRI'
push:
branches:
- main
paths:
- '**/rest_api/**'
- '**/web_app/**'
- '.github/workflows/test-run.yml'
pull_request:
branches:
- main
paths:
- '**/rest_api/**'
- '**/web_app/**'
- '.github/workflows/test-run.yml'
jobs:
test-run:
runs-on: ubuntu-latest
steps:
- name: Checkout (including submodules)
uses: actions/checkout@v7
with:
submodules: recursive
- name: Cache tests history
uses: actions/cache@v6
with:
save-always: true
path: output/history
key: tests-history-cache
restore-keys: |
tests-history-cache
- name: Set up JDK
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: 21
cache: 'gradle'
- name: Run REST API tests
run: |
./gradlew runStories -Pvividus.configuration-set.active=rest-api \
-Pvividus.allure.history-directory=output/history/rest-api-tests
- name: Publish REST API tests report
if: always()
uses: actions/upload-artifact@v7
with:
name: REST API tests report
path: output/reports/allure
- name: Run web application tests
run: |
./gradlew runStories -Pvividus.configuration-set.active=web-app \
-Pvividus.configuration-set.web-app.profiles=web/headless/chrome \
-Pvividus.web.driver.chrome.command-line-arguments="--headless --hide-scrollbars --ignore-certificate-errors --window-size=\${web.headless.chrome.window-size}" \
-Pvividus.allure.history-directory=output/history/web-app-tests
- name: Publish web application tests report
if: always()
uses: actions/upload-artifact@v7
with:
name: Web application tests report
path: output/reports/allure