Skip to content

Lazy load sentry only on errors #81

Lazy load sentry only on errors

Lazy load sentry only on errors #81

name: "Check and Validate CSS/JS Bundle Size with Node Setup"
on:
pull_request:
paths:
- '.github/workflows/ci-frontend-check.yml'
- "hugo/**/*.jsx?"
- "hugo/**/*.tsx?"
- "hugo/**/*.scss"
jobs:
size:
runs-on: ubuntu-latest
env:
CI_JOB_NUMBER: 1
NODE_OPTIONS: --openssl-legacy-provider
steps:
- name: Checkout repository
uses: actions/checkout@v4
# these steps are run in the size-limit-action anyway,
# but exposed separately so that in case there is a problem not with the file size
# but with the setup, we can see that failure clearly
- name: Set up Node.js
uses: actions/setup-node@v4
working-directory: hugo

Check failure on line 25 in .github/workflows/ci-frontend-check.yml

View workflow run for this annotation

GitHub Actions / Check and Validate CSS/JS Bundle Size with Node Setup

Invalid workflow file

The workflow is not valid. .github/workflows/ci-frontend-check.yml (Line: 25, Col: 9): Unexpected value 'working-directory'
with:
node-version: '22.x'
cache: 'npm'
- name: Install dependencies
run: npm install
working-directory: hugo
- name: Build project
run: npm run build
working-directory: hugo
- name: Check bundle size limits
uses: andresz1/size-limit-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
directory: hugo/
build_script: build