JCofman / webPagetestAction

⚡️🚀 Action to print webPagetest.org results
https://github.com/marketplace/actions/webpagetest-action
MIT License
57 stars 7 forks source link

action is not running on Pull Requests #10

Open horacioh opened 4 years ago

horacioh commented 4 years ago

hey! 👋

I wanted to add this action to my workflow and seems that is not running and I know why. but first let me explain my workflow:

on pull_request:

  1. build the project on the staging environment (netlify)
  2. get the unique Build URL from the artifacts
  3. AFTER build, run webpagetest on the unique build URL
  4. run performance budgets
  5. print the results on the Pull request comments.

this actions is the part 3, but it only runs on push, not pull requests: see the if statement here

My suggestion:

actually, now I'm thinking it would be nice to instead of removing the if statement, change it to a switch, so depending on where the user run it, it will do the appropiate octokit API calls.

I forked the repo and I'm doing testings myself. if I get any progress I will post it here! (and eventually submit a PR) :)

thanks!

JCofman commented 4 years ago

Hi 👋 @horacioh thx a lot I will take a look into it.