Bump @storybook/addon-actions from 6.5.9 to 7.6.6 #376
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: lighthouse | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
wait-for-vercel-deployment: | |
runs-on: ubuntu-18.04 | |
steps: | |
- name: Get deployment URL | |
id: deployment | |
uses: schoenwaldnils/get-deployment-url@master | |
timeout-minutes: 10 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- uses: UnlyEd/[email protected] | |
id: await-vercel | |
env: | |
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} | |
with: | |
deployment-url: ${{ steps.deployment.outputs.deployment }} | |
timeout: 600 # Wait for 10 minutes before failing | |
- name: Display deployment status | |
run: 'echo The deployment at ${{ fromJson(steps.await-vercel.outputs.deploymentDetails).url }} is ${{ fromJson(steps.await-vercel.outputs.deploymentDetails).readyState }}' | |
lighthouse-check: | |
runs-on: ubuntu-latest | |
needs: [wait-for-vercel-deployment] | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Get deployment URL | |
id: deployment | |
uses: dorshinar/get-deployment-url@master | |
timeout-minutes: 5 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Run Lighthouse | |
uses: foo-software/[email protected] | |
id: lighthouseCheck | |
with: | |
accessToken: ${{ secrets.GITHUB_TOKEN }} | |
author: ${{ github.actor }} | |
awsBucket: ${{ secrets.AWS_S3_BUCKET_LIGHTHOUSE }} | |
awsRegion: 'eu-central-1' | |
awsAccessKeyId: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
awsSecretAccessKey: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
branch: ${{ github.ref }} | |
urls: ${{ steps.deployment.outputs.deployment }} | |
sha: ${{ github.sha }} | |
- name: Handle Lighthouse Check results | |
uses: foo-software/lighthouse-check-status-action@master | |
with: | |
lighthouseCheckResults: ${{ steps.lighthouseCheck.outputs.lighthouseCheckResults }} | |
minAccessibilityScore: '90' | |
minBestPracticesScore: '50' | |
minPerformanceScore: '70' | |
minProgressiveWebAppScore: '50' | |
minSeoScore: '50' |