Skip to content

Commit

Permalink
Adde github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
DavitMkhitaryan committed Jul 15, 2024
1 parent 586b3fc commit 323b667
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/all-demo-tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: all-demo-tests

on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"

concurrency:
group: ci-demo

jobs:
all-demo-tests:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: main
- uses: actions/setup-node@v3
with:
node-version: 20
- name: Install dependencies
run: npm install
- name: Install Playwright Browsers
run: npx playwright install --with-deps chromium
- name: Run Playwright tests
run: xvfb-run --auto-servernum -- npm run test:headed
env:
ENVIRONMENT_URL: https://dapp-citizen-react.vercel.app
METAMASK_SETUP_NETWORK: ${{ vars.METAMASK_SETUP_NETWORK}}
METAMASK_SETUP_PRIVATE_KEY: ${{secrets.METAMASK_SETUP_PRIVATE_KEY}}
METAMASK_SETUP_PASSWORD: ${{secrets.METAMASK_SETUP_PASSWORD}}
- uses: actions/upload-artifact@v3
if: always()
with:
name: test-report
path: test-report/
retention-days: 30

0 comments on commit 323b667

Please sign in to comment.