719032b19f
Update Schema / Update configuration json schema (push) Has been cancelled
Memory Benchmark / Memory Test (Full Analysis) (push) Has been cancelled
CI Quality / Lint GitHub Actions (actionlint) (push) Has been cancelled
CI Quality / Lint GitHub Actions (zizmor) (push) Has been cancelled
CI Quality / Check typos (push) Has been cancelled
CI / Test coverage (push) Has been cancelled
CI / Test (22.x, windows-latest) (push) Has been cancelled
CI / Test (24.x, macos-latest) (push) Has been cancelled
CI / Test (24.x, ubuntu-latest) (push) Has been cancelled
CI / Test (24.x, windows-latest) (push) Has been cancelled
CI / Test (26.x, macos-latest) (push) Has been cancelled
CI / Test (26.x, ubuntu-latest) (push) Has been cancelled
CI / Test (26.x, windows-latest) (push) Has been cancelled
CI / Test with Bun (latest, macos-latest) (push) Has been cancelled
CI / Test with Bun (latest, ubuntu-latest) (push) Has been cancelled
CI / Test with Bun (latest, windows-latest) (push) Has been cancelled
CI / Build and run (22.x, macos-latest) (push) Has been cancelled
CI / Build and run (22.x, ubuntu-latest) (push) Has been cancelled
CI / Build and run (22.x, windows-latest) (push) Has been cancelled
autofix.ci / autofix (push) Has been cancelled
CI Browser Extension / Lint Browser Extension (push) Has been cancelled
CI Browser Extension / Test Browser Extension (push) Has been cancelled
Memory Benchmark / Memory Test (push) Has been cancelled
CI Website / Lint Website Client (push) Has been cancelled
CI Website / Lint Website Server (push) Has been cancelled
CI Website / Test Website Server (push) Has been cancelled
CI Website / Bundle Website Server (push) Has been cancelled
CI / Lint Biome (push) Has been cancelled
CI / Lint oxlint (push) Has been cancelled
CI / Lint TypeScript (push) Has been cancelled
CI / Lint Secretlint (push) Has been cancelled
CI / Test (22.x, macos-latest) (push) Has been cancelled
CI / Test (22.x, ubuntu-latest) (push) Has been cancelled
CI / Build and run (24.x, macos-latest) (push) Has been cancelled
CI / Build and run (24.x, ubuntu-latest) (push) Has been cancelled
CI / Build and run (24.x, windows-latest) (push) Has been cancelled
CI / Build and run (26.x, macos-latest) (push) Has been cancelled
CI / Build and run (26.x, ubuntu-latest) (push) Has been cancelled
CI / Build and run (26.x, windows-latest) (push) Has been cancelled
CI / Build and run with Bun (latest, macos-latest) (push) Has been cancelled
CI / Build and run with Bun (latest, ubuntu-latest) (push) Has been cancelled
CI / Build and run with Bun (latest, windows-latest) (push) Has been cancelled
CodeQL / Analyze (javascript-typescript) (push) Has been cancelled
Docker / build (linux/amd64, ubuntu-latest) (push) Has been cancelled
Docker / build (linux/arm/v7, ubuntu-24.04-arm) (push) Has been cancelled
Docker / build (linux/arm64, ubuntu-24.04-arm) (push) Has been cancelled
Docker / merge (push) Has been cancelled
Pack repository with Repomix / pack-repo (push) Has been cancelled
Performance Benchmark History / Benchmark (macos-latest) (push) Has been cancelled
Performance Benchmark History / Benchmark (ubuntu-latest) (push) Has been cancelled
Performance Benchmark History / Benchmark (windows-latest) (push) Has been cancelled
Performance Benchmark History / Store Results (push) Has been cancelled
Test Repomix Action / Test Node.js 22 (push) Has been cancelled
Test Repomix Action / Test Node.js 24 (push) Has been cancelled
Test Repomix Action / Test Node.js 26 (push) Has been cancelled
130 lines
3.7 KiB
YAML
130 lines
3.7 KiB
YAML
name: Memory Benchmark
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
workflow_dispatch:
|
|
inputs:
|
|
iterations:
|
|
description: 'Number of test iterations (default: 50)'
|
|
required: false
|
|
default: '50'
|
|
delay:
|
|
description: 'Delay between iterations in ms (default: 50)'
|
|
required: false
|
|
default: '50'
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
memory-test:
|
|
name: Memory Test
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 15
|
|
defaults:
|
|
run:
|
|
working-directory: scripts/memory
|
|
steps:
|
|
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
|
with:
|
|
persist-credentials: false
|
|
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
|
|
with:
|
|
node-version-file: .tool-versions
|
|
cache: npm
|
|
cache-dependency-path: |
|
|
package-lock.json
|
|
scripts/memory/package-lock.json
|
|
|
|
# Install root dependencies (for repomix)
|
|
- name: Install root dependencies
|
|
working-directory: .
|
|
run: npm ci
|
|
|
|
# Build repomix
|
|
- name: Build repomix
|
|
working-directory: .
|
|
run: node --run build
|
|
|
|
# Install benchmark dependencies
|
|
- name: Install benchmark dependencies
|
|
run: npm ci
|
|
|
|
# Build benchmark
|
|
- name: Build benchmark
|
|
run: node --run build
|
|
|
|
# Run memory test
|
|
- name: Run memory test
|
|
run: node --expose-gc dist/memory-test.js "$ITERATIONS" "$DELAY"
|
|
env:
|
|
CI: true
|
|
ITERATIONS: ${{ github.event.inputs.iterations || '50' }}
|
|
DELAY: ${{ github.event.inputs.delay || '50' }}
|
|
|
|
# Upload memory test results if available
|
|
- name: Upload memory test results
|
|
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
|
if: always()
|
|
with:
|
|
name: memory-test-results-${{ github.run_id }}
|
|
path: scripts/memory/memory-test-results-*.json
|
|
retention-days: 30
|
|
|
|
memory-test-full:
|
|
name: Memory Test (Full Analysis)
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 30
|
|
# Only run full analysis on manual dispatch
|
|
if: github.event_name == 'workflow_dispatch'
|
|
defaults:
|
|
run:
|
|
working-directory: scripts/memory
|
|
steps:
|
|
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
|
with:
|
|
persist-credentials: false
|
|
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
|
|
with:
|
|
node-version-file: .tool-versions
|
|
cache: npm
|
|
cache-dependency-path: |
|
|
package-lock.json
|
|
scripts/memory/package-lock.json
|
|
|
|
# Install root dependencies (for repomix)
|
|
- name: Install root dependencies
|
|
working-directory: .
|
|
run: npm ci
|
|
|
|
# Build repomix
|
|
- name: Build repomix
|
|
working-directory: .
|
|
run: node --run build
|
|
|
|
# Install benchmark dependencies
|
|
- name: Install benchmark dependencies
|
|
run: npm ci
|
|
|
|
# Build benchmark
|
|
- name: Build benchmark
|
|
run: node --run build
|
|
|
|
# Run comprehensive memory test
|
|
- name: Run comprehensive memory test
|
|
run: node --expose-gc dist/memory-test.js --full --save
|
|
env:
|
|
CI: true
|
|
|
|
# Upload detailed memory test results
|
|
- name: Upload detailed memory test results
|
|
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
|
if: always()
|
|
with:
|
|
name: memory-test-results-full-${{ github.run_id }}
|
|
path: scripts/memory/memory-test-results-*.json
|
|
retention-days: 90
|