Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
0a9f102
Create cypress.yml
HeshanSnjaya Jan 4, 2025
b395580
Update cypress.yml
HeshanSnjaya Jan 4, 2025
111b51b
Update cypress.yml
HeshanSnjaya Jan 4, 2025
719034b
Update cypress.yml
HeshanSnjaya Jan 4, 2025
484d71a
Update cypress.yml
HeshanSnjaya Jan 4, 2025
62e0d98
Update cypress.yml
HeshanSnjaya Jan 4, 2025
0d11fac
Update cypress.yml
HeshanSnjaya Jan 4, 2025
00cdea8
Update cypress.yml
HeshanSnjaya Jan 4, 2025
25127a4
Update cypress.yml
HeshanSnjaya Jan 4, 2025
24ad64e
Update cypress.yml
HeshanSnjaya Jan 4, 2025
dec33e5
Update cypress.yml
HeshanSnjaya Jan 4, 2025
6dd4949
Update cypress.yml
HeshanSnjaya Jan 4, 2025
12d2a6d
Update cypress.yml
HeshanSnjaya Jan 4, 2025
5ca7ceb
Update cypress.yml
HeshanSnjaya Jan 4, 2025
64470bd
Update cypress.yml
HeshanSnjaya Jan 4, 2025
a52cd24
Update cypress.yml
HeshanSnjaya Jan 4, 2025
dd35f6c
Update cypress.yml
HeshanSnjaya Jan 4, 2025
0d7a72a
Update cypress.yml
HeshanSnjaya Jan 4, 2025
56dd2fc
Update cypress.yml
HeshanSnjaya Jan 4, 2025
306668f
Update cypress.yml
HeshanSnjaya Jan 4, 2025
ca2c5fd
Update cypress.yml
HeshanSnjaya Jan 4, 2025
3f0c525
Update cypress.yml
HeshanSnjaya Jan 4, 2025
335c184
Update cypress.yml
HeshanSnjaya Jan 4, 2025
13a0fd4
Update cypress.yml
HeshanSnjaya Jan 4, 2025
817f04a
Update cypress.yml
HeshanSnjaya Jan 4, 2025
3ffc415
Update cypress.yml
HeshanSnjaya Jan 4, 2025
823b1f4
Update cypress.yml
HeshanSnjaya Jan 4, 2025
e62f24b
Update cypress.yml
HeshanSnjaya Jan 4, 2025
b24903b
Update cypress.yml
HeshanSnjaya Jan 4, 2025
f717167
Update cypress.yml
HeshanSnjaya Jan 4, 2025
e8d4128
Merge pull request #33 from Team-Infolinx/HeshanSnjaya-patch-2
HeshanSnjaya Jan 4, 2025
7dfb4bb
Delete main.yml
nimeshnuwanga Jan 4, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 62 additions & 0 deletions .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Cypress Tests with Allure Report

on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop

jobs:
tests:
runs-on: ubuntu-latest

steps:
# Step 1: Check out the repository
- uses: actions/checkout@v4

# Step 2: Set up Node.js
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'

# Step 3: Install dependencies
- name: Install dependencies
run: |
npm ci
npx cypress install # Ensure Cypress is installed

# Step 4: Set up Allure commandline
- name: Set up Allure commandline
run: npm install -g allure-commandline

# Step 5: Install additional dependencies for Allure and Cypress
- name: Install additional dependencies
run: |
npm install mocha-allure-reporter allure-cypress --save-dev
npm install @bahmutov/cypress-esbuild-preprocessor @badeball/cypress-cucumber-preprocessor cypress-file-upload --save-dev

# Step 6: Run Cypress tests and generate Allure results (ensure it doesn't fail the workflow)
- name: Run Cypress tests
run: |
npx cypress run --reporter mocha-allure-reporter --reporter-options allureResults=allure-results || true
echo "Cypress tests completed (even with failures)"

# Step 7: Always generate Allure report, even if tests failed
- name: Generate Allure report
run: |
allure generate allure-results --clean
if: always() # Ensures it runs even if the previous step fails

# Step 8: Deploy Allure Report to GitHub Pages
- name: Deploy Allure Report to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
personal_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./allure-report # Folder where the Allure report is generated
publish_branch: gh-pages # Deploy to gh-pages branch
if: always() # Ensures this step runs even if tests fail
117 changes: 0 additions & 117 deletions .github/workflows/main.yml

This file was deleted.

Loading