mirror of
https://github.com/tiennm99/github-readme-stats.git
synced 2026-05-14 10:58:34 +00:00
ci: add e2e vercel test action (#2054)
* ci: add e2e vercel test action This commit adds several end-to-end tests that can be used to test whether the Vercel Preview deployment successfully returns the cards. * test: add additional e2e card tests * test: improve e2e card tests This commit makes sure that the tests also check whether a valid cards are returned from the preview deployment.
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
name: Test Deployment
|
||||
on:
|
||||
deployment_status:
|
||||
|
||||
jobs:
|
||||
preview:
|
||||
if:
|
||||
github.event_name == 'deployment_status' &&
|
||||
github.event.deployment_status.state == 'success'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
env:
|
||||
CI: true
|
||||
- name: Run end-to-end tests.
|
||||
run: npm run test:e2e
|
||||
env:
|
||||
VERCEL_PREVIEW_URL: ${{ github.event.deployment_status.target_url }}
|
||||
Reference in New Issue
Block a user