Skip to content

Vercel Previewが生成されるまで、Pull RequestトリガーのWorkflowの実行を遅延させるGithub Action

Notifications You must be signed in to change notification settings

hrdtbs/wait-for-vercel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wait for Vercel

name: E2E tests
on:
  pull_request:
    branches:
     - master
jobs:
  run_tests:
    name: Run E2E tests on deployment success
    runs-on: ubuntu-latest
    strategy:
      matrix:
        node-version: [12.x]

    steps:
      - name: Waiting for Vercel
        uses: hrdtbs/wait-for-vercel@master
        id: vercel
        with:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
      - uses: actions/checkout@v2
      - name: Use Node.js ${{ matrix.node-version }}
        uses: actions/setup-node@v1
        with:
          node-version: ${{ matrix.node-version }}

      - name: Install dependencies
        run: yarn --frozen-lockfile

      - uses: microsoft/playwright-github-action@v1
      - run: yarn e2e
        env:
          BASE_URL: ${{ steps.vercel.outputs.target_url }}
      - uses: actions/upload-artifact@v1
        with:
          name: download-screenshots
          path: screenshots

About

Vercel Previewが生成されるまで、Pull RequestトリガーのWorkflowの実行を遅延させるGithub Action

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published