-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (37 loc) · 1.13 KB
/
playwright-tests.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
name: Playwright Tests
on:
push:
schedule:
- cron: '0 14 * * *'
jobs:
run-tests:
name: Run Playwright Tests
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
with:
ref: main # Use the main branch here
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '16'
- name: Create .env file from secrets
run: |
echo "CREDENTIALS={\"codioemail\":\"${{ secrets.CODIOEMAIL }}\",\"codiopass\":\"${{ secrets.CODIOPASS }}\"}" > .env
- name: Install Dependencies
run: npm install
- name: Install Browsers
run: npx playwright install
- name: Run Playwright Tests
run: npx playwright test
- name: Generate Allure Report
run: |
npm install -g allure-commandline
allure generate allure-results --clean -o allure-report
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./allure-report
branch: main # Ensure this is the branch you want to deploy to