Skip to content

Commit

Permalink
Try to get tests running with hardcoded URL
Browse files Browse the repository at this point in the history
  • Loading branch information
benefacto committed Dec 27, 2023
1 parent 7f6cda1 commit 3f0c837
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 46 deletions.
20 changes: 8 additions & 12 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
name: Playwright Tests

on:
workflow_run:
workflows: ["Upload Deployment URL"]
types:
- completed
# TODO: Constrain this further
push:
branches:
- '**'
pull_request:
branches:
- '**'

jobs:
test:
needs: capture-deployment-url
if: github.event_name != 'deployment_status'
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
Expand All @@ -19,16 +20,11 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 18
- name: Download Deployment URL
uses: actions/download-artifact@v2
with:
name: deployment-url
- run: echo "$(<deployment-url)"
- name: Install dependencies
run: npm ci
- name: Install Playwright
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npx playwright test
env:
WEBAPP_URL: $(cat deployment-url | grep DEPLOYMENT_URL | cut -d '=' -f2)
WEBAPP_URL: https://deploy-preview-740--tezos-homebase.netlify.app
34 changes: 0 additions & 34 deletions .github/workflows/upload_deployment_url.yaml

This file was deleted.

0 comments on commit 3f0c837

Please sign in to comment.