Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running CI Tests against deployment preview #3

Open
ivelin opened this issue Jan 3, 2022 · 1 comment
Open

Running CI Tests against deployment preview #3

ivelin opened this issue Jan 3, 2022 · 1 comment

Comments

@ivelin
Copy link

ivelin commented Jan 3, 2022

Happy New Year, Fleek team!

I am helping OlympusDAO front end dev and have a question related to CI deployment previews.

We can see the preview deployment URL in the PR check, but not sure how to use it as a trigger and parameter to a github action.

2021-12-29T03:06:56.956Z: You can preview this build on :
2021-12-29T03:06:56.956Z: https://bafybeiduhbnqvujhupyxroqy76riecovmyytcf76lx7naup2i7gkop4lna.on.fleek.co

Is there a way to run Lighthouse or E2E tests against a site deployment preview? Something similar to this Netlify deployment preview action:

  lighthouse:
    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2
    - name: Wait for Netlify preview deployment of this git branch
      if: github.repository_owner == 'ambianic'
      uses: jakepartusch/wait-for-netlify-action@v1
      id: get-netlify-url
      with:
        site_name: "ambianic-pwa-dist"
        max_timeout: 180
    - name: Run Lighthouse PWA check against Netlify PR Preview
      uses: treosh/lighthouse-ci-action@v8
      with:
        urls: |
          ${{ steps.get-netlify-url.outputs.url }}
        uploadArtifacts: true # save results as an action artifacts
        temporaryPublicStorage: true # upload lighthouse report to the temporary storage
        # budgetPath: '.github/lighthouse/budget.json' # performance budgets
        configPath: '.github/lighthouse/lighthouserc-netlify-preview.json' # PWA checks
@ivelin
Copy link
Author

ivelin commented Jan 25, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant