Test Deployment #2610
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test Deployment | |
on: | |
deployment_status: | |
permissions: read-all | |
jobs: | |
e2eTests: | |
if: | |
github.repository == 'anuraghazra/github-readme-stats' && | |
github.event_name == 'deployment_status' && | |
github.event.deployment_status.state == 'success' | |
name: Perform 2e2 tests | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x] | |
steps: | |
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 | |
- name: Setup Node | |
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: npm | |
- 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 }} |