mirror of
https://github.com/System-End/github-readme-stats.git
synced 2026-04-19 16:38:23 +00:00
* 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.
20 lines
496 B
YAML
20 lines
496 B
YAML
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 }}
|