Skip to content

Update node.js version to 20 #30

Update node.js version to 20

Update node.js version to 20 #30

Workflow file for this run

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Automation Test Execution
on:
push:
branches: [ master ]
jobs:
tests:
name: Test Execution
runs-on: windows-latest
steps:
- name: Checkout code from repository
uses: actions/checkout@v3
- name: Setting up Node.js 20
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'npm'
- name: Install dependencies
run: npm ci && npx playwright install
- name: Creating test suite
run: npm run create:suite SHEET=Regression --if-present
- name: Test execution
run: npm test
- name: Generating execution report
if: always()
run: npx ts-node ./src/framework/reporter/HTMLReporter.ts
- name: Upload test results
if: always()
uses: actions/upload-artifact@v3
with:
name: test-results
path: test-results
- name: Upload allure-results artifact
if: always()
uses: actions/upload-artifact@master
with:
name: allure-results
path: allure-results
retention-days: 30
generate_report:
name: Allure Report
runs-on: ubuntu-latest
if: always()
needs: [ tests ]
steps:
- name: Download Artifacts
uses: actions/download-artifact@v3
id: download
with:
name: allure-results
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
uses: simple-elf/allure-report-action@master
if: always()
id: allure-report
with:
allure_results: allure-results
gh_pages: gh-pages
allure_report: allure-report
allure_history: allure-history
- name: Deploy allure 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