Skip to content

Commit

Permalink
Move lighthouse-job to deploy-job dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
maxonary committed Dec 12, 2023
1 parent d218369 commit c63cc2b
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,26 +75,9 @@ jobs:
working-directory: ./frontend


lighthouse-job:
name: Lighthouse Audit
runs-on: ubuntu-latest
needs: [frontend-job]

steps:
- uses: actions/checkout@v3
- name: Audit URLs using Lighthouse
uses: treosh/lighthouse-ci-action@v10
with:
urls: |
${{ secrets.APP_URL }}
budgetPath: ./budget.json # test performance budgets
uploadArtifacts: true # save results as an action artifacts
temporaryPublicStorage: true # upload lighthouse report to the temporary storage


deploy-job:
name: Deploy to Server
needs: [ backend-job, frontend-job, lighthouse-job]
needs: [ backend-job, frontend-job]
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'

Expand Down Expand Up @@ -132,4 +115,21 @@ jobs:
echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
ssh-keyscan -p $PORT $HOST >> ~/.ssh/known_hosts
ssh -p $PORT $USERNAME@$HOST '~/deploy_script.sh'
ssh -p $PORT $USERNAME@$HOST '~/deploy_script.sh'
lighthouse-job:
name: Lighthouse Audit
runs-on: ubuntu-latest
needs: [frontend-job, deploy-job]

steps:
- uses: actions/checkout@v3
- name: Audit URLs using Lighthouse
uses: treosh/lighthouse-ci-action@v10
with:
urls: |
${{ secrets.APP_URL }}
budgetPath: ./budget.json # test performance budgets
uploadArtifacts: true # save results as an action artifacts
temporaryPublicStorage: true # upload lighthouse report to the temporary storage

0 comments on commit c63cc2b

Please sign in to comment.