github: Separate testing and deployment pipelines
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
This commit is contained in:
parent
31b5b52b53
commit
f4085802dc
|
@ -1,4 +1,4 @@
|
|||
name: Hugo deployment test
|
||||
name: Hugo deployment
|
||||
|
||||
on:
|
||||
push:
|
||||
|
@ -14,7 +14,7 @@ jobs:
|
|||
- name: Setup Hugo
|
||||
uses: peaceiris/actions-hugo@v2.2.2
|
||||
with:
|
||||
hugo-version: '0.59.1'
|
||||
hugo-version: '0.60.1'
|
||||
extended: true
|
||||
|
||||
- name: Build staging
|
||||
|
@ -48,16 +48,3 @@ jobs:
|
|||
CF_API_KEY: ${{ secrets.CLOUDFLARE_API_KEY }}
|
||||
CF_ZONE_ID: ${{ secrets.CLOUDFLARE_ZONE_ID }}
|
||||
|
||||
- name: Audit URLs using Lighthouse
|
||||
uses: treosh/lighthouse-ci-action@v2
|
||||
with:
|
||||
urls: |
|
||||
https://msfjarvis.website/
|
||||
https://staging.msfjarvis.website
|
||||
budgetsPath: ./budgets.json
|
||||
|
||||
- name: Save results
|
||||
uses: actions/upload-artifact@v1
|
||||
with:
|
||||
name: lighthouse-results
|
||||
path: '.lighthouseci'
|
|
@ -0,0 +1,29 @@
|
|||
name: Lighthouse testing
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- src
|
||||
|
||||
jobs:
|
||||
lighthouse-test:
|
||||
runs-on: ubuntu-18.04
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
|
||||
- name: Wait for deployment to finish
|
||||
run: sleep 60
|
||||
|
||||
- name: Audit URLs using Lighthouse
|
||||
uses: treosh/lighthouse-ci-action@v2
|
||||
with:
|
||||
urls: |
|
||||
https://msfjarvis.website/
|
||||
https://staging.msfjarvis.website
|
||||
budgetsPath: ./budgets.json
|
||||
|
||||
- name: Save results
|
||||
uses: actions/upload-artifact@v1
|
||||
with:
|
||||
name: lighthouse-results
|
||||
path: '.lighthouseci'
|
Loading…
Reference in New Issue