Playwright Tests #164
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Playwright Tests | |
on: | |
schedule: | |
- cron: "05 05 * * 5" | |
workflow_dispatch: | |
jobs: | |
test: | |
timeout-minutes: 60 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: start SearXNG | |
run: docker run --rm -d -p 8888:8080 searxng/searxng | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '16.x' | |
- name: Install dependencies | |
run: npm ci | |
- name: Install Playwright | |
run: npm run install | |
- name: Run Playwright tests | |
run: npm run test | |
if: always() | |
- name: Generate report | |
run: | | |
npm run report | |
echo "dev.searxng.org" > allure-report/CNAME | |
- name: Deploy to the report branch | |
uses: JamesIves/[email protected] | |
with: | |
branch: report | |
folder: allure-report | |
single-commit: true | |
clean: true |