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

how to use this action with a preview url #7

Open
dagda1 opened this issue Nov 28, 2021 · 1 comment
Open

how to use this action with a preview url #7

dagda1 opened this issue Nov 28, 2021 · 1 comment

Comments

@dagda1
Copy link

dagda1 commented Nov 28, 2021

I am trying to use this action with a verbal preview url:

on: [pull_request]

jobs:
  build:
    runs-on: ubuntu-latest
    name: WebPageTest Action
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      
      - name: Waiting for 200 from the Vercel Preview
        uses: patrickedqvist/[email protected]
        id: vercel_preview_url
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
          max_timeout: 200
      
      - name: WebPageTest
        uses: WPO-Foundation/webpagetest-github-action@main
        with:
          apiKey: ${{ secrets.WPT_API_KEY }}
          urls: |
            ${{ steps.vercel_preview_url.outputs.vercel_preview_url }}
          label: 'GitHub Action Test'
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

The action errors with:

Run WPO-Foundation/webpagetest-github-action@main
  with:
    apiKey: ***
    urls: 
  
    label: GitHub Action Test
    GITHUB_TOKEN: ***
WebPageTest Configuration
  WebPageTest settings: {
    "firstViewOnly": true,
    "runs": 3,
    "location": "Dulles:Chrome",
    "connectivity": "4G",
    "pollResults": 5,
    "timeout": 240,
    "emulateMobile": true,
    "label": "GitHub Action Test"
  }
Testing urls in WebPageTest..
  Submitting test for  ...
  Error: Action failed with error [object Object]

Is there a way I can get a better error message than [object Object]?

@mbrevda
Copy link
Contributor

mbrevda commented Apr 11, 2022

Is there a way I can get a better error message than [object Object]?

I believe this was fixed with #8

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

2 participants