Repository navigation
feat(context): support updating live options and releasing tool state #1672
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Memory leak tests | |
| permissions: | |
| contents: read | |
| on: | |
| merge_group: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| jobs: | |
| memory-leak-test: | |
| name: 'Check for memory leaks' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| fetch-depth: 2 | |
| submodules: true | |
| - name: Set up Node.js | |
| uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 | |
| with: | |
| cache: npm | |
| node-version: 22 | |
| - name: Install dependencies | |
| shell: bash | |
| run: npm ci | |
| env: | |
| PUPPETEER_SKIP_DOWNLOAD: true | |
| - name: Install browser | |
| shell: bash | |
| run: npx puppeteer browsers install chrome | |
| - name: Build | |
| run: npm run build | |
| - name: Disable AppArmor | |
| shell: bash | |
| run: echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns | |
| - name: Run memory leak tests | |
| shell: bash | |
| run: npm run profile -- --threshold-percentage=1 |