Skip to content

Bump the all-dependencies group across 1 directory with 16 updates #545

Bump the all-dependencies group across 1 directory with 16 updates

Bump the all-dependencies group across 1 directory with 16 updates #545

Workflow file for this run

name: Test Action
on:
pull_request:
branches:
- main
- 'releases/*'
paths:
- 'action/**'
- '.stoat/**'
- '.github/workflows/test-action.yaml'
push:
branches:
- main
- 'releases/*'
paths:
- 'action/**'
- '.stoat/**'
- '.github/workflows/test-action.yaml'
defaults:
run:
working-directory: action
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Setup cache
uses: actions/cache@v4
with:
path: |
${{ github.workspace }}/types/node_modules
${{ github.workspace }}/action/node_modules
key: ${{ runner.os }}-node-20-action-${{ hashFiles('types/yarn.lock') }}-${{ hashFiles('action/yarn.lock') }}
- name: Install types dependencies
working-directory: types
run: |
yarn install --frozen-lockfile
- name: Install action dependencies
run: |
yarn install --frozen-lockfile
- name: Build and test stoat action
run: |
yarn all
- name: Compare expected vs actual dist directories
run: |
if [ "$(git diff --ignore-space-at-eol dist/ | wc -l)" -gt "0" ]; then
echo "Detected uncommitted changes after build. See status below:"
git diff
exit 1
fi
- name: Emit package size
run: |
echo "Writing to action_package_size.json..."
echo "{ \"value\": $(du -sk dist | awk '{print $1 * 1024}'), \"tag\": \"Byte Size\" }" | tee action_package_size.json
- name: Emit runner memory
working-directory: ${{ github.workspace }}
run: |
free
echo "Writing to action_runner_memory.jsonl..."
echo "{ \"value\": $(awk '/^Mem/ {print $2}' <(free)), \"tag\": \"Total\" }" | tee action_runner_memory.jsonl
echo "{ \"value\": $(awk '/^Mem/ {print $3}' <(free)), \"tag\": \"Used\" }" | tee -a action_runner_memory.jsonl
echo "{ \"value\": $(awk '/^Mem/ {print $4}' <(free)), \"tag\": \"Free\" }" | tee -a action_runner_memory.jsonl
echo "{ \"value\": $(awk '/^Mem/ {print $5}' <(free)), \"tag\": \"Buff/Cache\" }" | tee -a action_runner_memory.jsonl
- name: Run stoat action
uses: ./
if: always()