Skip to content

Update all dependencies #681

Update all dependencies

Update all dependencies #681

Workflow file for this run

name: "[workflow] Pull Request"
on:
pull_request:
branches:
- main
jobs:
build:
name: Linux build on node
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/[email protected]
- name: Set up prerequisites - node and yarn
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- name: Cache yarn dependencies
id: cache
uses: actions/cache@v4
with:
path: ./node_modules
key: modules-${{ hashFiles('yarn.lock') }}
- name: Install packages
if: steps.cache.outputs.cache-hit != 'true'
run: yarn install
- name: Run Spell Checking
run: yarn run lint:spell
- name: Run lint markdown
run: yarn run lint:markdown
- name: Run Linting
run: yarn run lint:check
- name: Run Build
run: yarn run build
- name: Audit pages using lighthouse
continue-on-error: true
uses: treosh/lighthouse-ci-action@v12
with:
configPath: "./lighthouserc.json"
budgetPath: ./src/_includes/budget.json
uploadArtifacts: true
temporaryPublicStorage: true
- name: Run pa11y
run: yarn run pa11y-ci
continue-on-error: true
- name: Send pa11y results to PR Comment
uses: actions/github-script@v7
env:
BODY_PREFIX: '<!-- pa11y-ci results -->'
OWNER: 'johnnolan'
REPO: 'johnnolan.dev'
with:
script: |
const script = require('./.github/workflows/scripts/pa11y-ci.js')
await script({ github, context, core })