diff --git a/.github/workflows/all-demo-tests.yaml b/.github/workflows/all-demo-tests.yaml new file mode 100644 index 0000000..abb7118 --- /dev/null +++ b/.github/workflows/all-demo-tests.yaml @@ -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 \ No newline at end of file