Skip to content

Cypress Automation Tests #19

Cypress Automation Tests

Cypress Automation Tests #19

name: Cypress Automation Tests
on:
workflow_dispatch:
jobs:
job1:
name: cypress-run
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
containers: [ 0, 1, 2, 3, 4,5 ]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Packages
run: npm install
- name: Run Tests
run: npx cypress run --env grepTags=@regression allure=true --spec $(node cypress-parallel.js ${{ matrix.containers }} 6)
- name: Upload a Build Artifact
uses: actions/[email protected]
if: always()
with:
name: ReportsData
path: allure-results
job2:
name: reports
if: always()
runs-on: ubuntu-latest
needs: job1
steps:
- name: Download a Build Artifact
uses: actions/[email protected]
with:
name: ReportsData
path: allure-results
- name: Get Allure history
uses: actions/checkout@v2
if: always()
continue-on-error: true
with:
ref: gh-pages
path: gh-pages
- name: Allure Report action from marketplace
uses: simple-elf/allure-report-action@master
if: always()
with:
allure_results: allure-results
allure_history: allure-history
keep_reports: 20
- name: Deploy report to Github Pages
if: always()
uses: peaceiris/actions-gh-pages@v2
env:
PERSONAL_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: allure-history