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@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 - name: Setup Node uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 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 }}