chore(deps-dev): bump jest from 29.6.2 to 29.6.4 #2676
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: CI | |
on: | |
pull_request: | |
branches: | |
- master | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎 | |
uses: actions/checkout@master | |
- name: Setup node env 🏗 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
check-latest: true | |
- name: Cache node_modules 📦 | |
uses: actions/cache@v3 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
${{ runner.os }}- | |
- name: Install dependencies 👨🏻💻 | |
run: npm ci --prefer-offline --no-audit --legacy-peer-deps | |
- name: Run linter 👀 | |
env: | |
NODE_ENV: test | |
run: npm run lint | |
- name: Run tests 🧪 | |
run: npm run test | |
- name: Run build 🚀 | |
env: | |
GATSBY_SITE_RECAPTCHA_KEY: ${{ secrets.SITE_RECAPTCHA_KEY }} | |
SITE_RECAPTCHA_SECRET: ${{ secrets.SITE_RECAPTCHA_SECRET }} | |
NETLIFY_SITE_URL: ${{ secrets.NETLIFY_SITE_URL }} | |
run: | | |
echo GATSBY_SITE_RECAPTCHA_KEY=$SITE_RECAPTCHA_KEY >> .env.production | |
echo SITE_RECAPTCHA_SECRET=$SITE_RECAPTCHA_SECRET >> .env.production | |
echo NETLIFY_SITE_URL=$NETLIFY_SITE_URL >> .env.production | |
npm run build | |
- name: Run lighthouse audit 📱 | |
env: | |
LHCI_GITHUB_APP_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: npm run lighthouse | |
- name: Run cypress 🎉 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} | |
GATSBY_SITE_RECAPTCHA_KEY: ${{ secrets.SITE_RECAPTCHA_KEY }} | |
SITE_RECAPTCHA_SECRET: ${{ secrets.SITE_RECAPTCHA_SECRET }} | |
NETLIFY_SITE_URL: ${{ secrets.NETLIFY_SITE_URL }} | |
CYPRESS_NETLIFY_CMS_EMAIL: ${{ secrets.CYPRESS_NETLIFY_CMS_EMAIL }} | |
CYPRESS_NETLIFY_CMS_PASSWORD: ${{ secrets.CYPRESS_NETLIFY_CMS_PASSWORD }} | |
run: | | |
npm run test:e2e:ci | |
- name: Upload cypress artifacts 📁 | |
uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: cypress-artifacts | |
path: | | |
cypress/screenshots | |
cypress/videos |