Skip to content

Commit

Permalink
chore: add logging
Browse files Browse the repository at this point in the history
  • Loading branch information
timeowilliams committed Sep 14, 2024
1 parent 91eaebf commit 2c4a051
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/package-size-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,19 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
node-version: "20" # Set Node.js version to 20

# Clean the npm cache to ensure a fresh install of dependencies
- name: Clean npm cache
run: npm cache clean --force

# Install dependencies using npm ci for a clean installation
- name: Install dependencies
run: npm install
run: npm ci

# Debugging step to list files in the build directory to ensure the path is correct
- name: List files in build directory
run: ls -R build/static/js/

- name: Run Package Size Badge Action
uses: ./
Expand All @@ -29,5 +38,7 @@ jobs:
label: "Bundle Size"
limit: "500" # Set size limit in KB
color: "green" # Badge color
env:
ACTIONS_RUNNER_DEBUG: true

timeout-minutes: 10

0 comments on commit 2c4a051

Please sign in to comment.