github: Separate testing and deployment pipelines

Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
This commit is contained in:
Harsh Shandilya 2019-12-01 21:11:23 +05:30
parent 31b5b52b53
commit f4085802dc
2 changed files with 31 additions and 15 deletions

View File

@ -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'

29
.github/workflows/lighthouse.yml vendored Normal file
View File

@ -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'