Did these run in paralell?

I am not sure how to tell?

I actually only want lighthouse to run AFTER the deploy https://github.com/kaihendry/ltabus/tree/master/.github/workflows … not sure how to do that. I did Google around but the instructions weren’t clear.

By default they should, assuming there are enough runners available. Usually the solution should be to put both jobs into one workflow and use jobs.<job_id>.needs to define the dependency.

I have read about people working around that by triggering one workflow from the other using workflow_dispatch with a PAT, but in most cases that’ll be way more trouble than it’s worth. :wink:

@kaihendry,

you can try using the workflow_run event to trigger the workflow “Lighthouse Audit”.

name: Lighthouse Audit
on:
  workflow_run:
    workflows: ["Deploy"]
    types: 
      - completed
jobs:
  lighthouse:
    runs-on: ubuntu-latest
    steps:
      . . .

In this way, after the workflow “Deploy” completed, “Lighthouse Audit” will be triggered.

2 Likes