当前,每次将提交推送到开发分支时,我正在使用lighthouse github动作为一组URL生成性能和SEO报告。现在,此操作开始,并在“推送”之后立即生成报告,因此与构建部署并行。这会导致报告过时,是否有办法告诉我的github操作要等到部署成功?
.yml
文件name: Lighthouse
on:
push:
branches:
- development
jobs:
lighthouse:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Lighthouse CI
uses: treosh/lighthouse-ci-action@v2
with:
urls: |
https://example.com/
https://example.com/foo
https://example.com/bar
- name: Save results
uses: actions/upload-artifact@v1
with:
name: lighthouse-report
path: '.lighthouseci'