Bump contentful-management from 7.42.1 to 11.5.1 #509
Workflow file for this run
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: schoen-world | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '14' | |
- name: npm install | |
run: npm ci | |
- name: lint ts | |
run: npm run lint:ts | |
- name: lint types | |
run: npm run lint:types | |
build: | |
runs-on: ubuntu-latest | |
env: | |
NODE_ENV: production | |
CONTENTFUL_MANAGEMENT_TOKEN: ${{ secrets.CONTENTFUL_MANAGEMENT_TOKEN }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '14' | |
- name: npm install | |
run: npm ci --also=dev | |
- name: build | |
run: npm run build | |
visual-regression-test: | |
runs-on: ubuntu-latest | |
env: | |
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '14' | |
- name: npm install | |
run: npm ci | |
- name: Percy Test | |
uses: percy/storybook-action@v0.1.6 | |
env: | |
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }} | |
with: | |
custom-command: 'npm run snapshot' | |
lighthouse-check: | |
runs-on: ubuntu-latest | |
if: github.ref != 'refs/heads/main' | |
steps: | |
- uses: actions/checkout@master | |
- name: Get deployment URL | |
id: deployment | |
uses: schoenwaldnils/get-deployment-url@master | |
timeout-minutes: 10 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Wait for Deployment | |
uses: UnlyEd/github-action-await-vercel@v1.1.0 | |
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: Run Lighthouse | |
uses: foo-software/lighthouse-check-action@v1.0.10 | |
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: 'https://${{ steps.deployment.outputs.deployment }},https://${{ steps.deployment.outputs.deployment }}/blog,https://${{ steps.deployment.outputs.deployment }}/blog/test' | |
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: '80' | |
minPerformanceScore: '80' | |
minProgressiveWebAppScore: '50' | |
minSeoScore: '80' |