Skip to content

Commit

Permalink
Update GitHub Actions workflow to use Vercel preview URL
Browse files Browse the repository at this point in the history
  • Loading branch information
devin-ai-integration[bot] committed Jul 25, 2024
1 parent bd249df commit 5c946f0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
run: yarn add @playwright/test
- name: Run Playwright tests
env:
PLAYWRIGHT_TEST_BASE_URL: ${{ github.event.deployment_status.target_url || 'https://esdeveniments-repository-iohq9ls1.devinapps.com' }}
PLAYWRIGHT_TEST_BASE_URL: ${{ github.event.deployment_status.target_url || 'http://localhost:3001' }}
PLAYWRIGHT_TEST_TIMEOUT: 60000
# Add other necessary environment variables
NEXT_PUBLIC_GOOGLE_MAPS: ${{ secrets.NEXT_PUBLIC_GOOGLE_MAPS }}
Expand All @@ -49,9 +49,8 @@ jobs:
NEXT_PUBLIC_TINY: ${{ secrets.NEXT_PUBLIC_TINY }}
NEXT_PUBLIC_SCRAPINGBEE: ${{ secrets.NEXT_PUBLIC_SCRAPINGBEE }}
run: |
echo "PLAYWRIGHT_TEST_BASE_URL: ${{ github.event.deployment_status.target_url || 'https://esdeveniments-repository-iohq9ls1.devinapps.com' }}"
echo "PLAYWRIGHT_TEST_BASE_URL: $PLAYWRIGHT_TEST_BASE_URL"
echo "PLAYWRIGHT_TEST_TIMEOUT: $PLAYWRIGHT_TEST_TIMEOUT"
export PLAYWRIGHT_TEST_TIMEOUT=$PLAYWRIGHT_TEST_TIMEOUT
yarn playwright test
- uses: actions/upload-artifact@v3
if: always()
Expand Down

0 comments on commit 5c946f0

Please sign in to comment.