mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-17 14:05:28 +00:00
Bumps the workflows group with 2 updates in the / directory: [actions/checkout](https://github.com/actions/checkout) and [actions/stale](https://github.com/actions/stale). Updates `actions/checkout` from 4 to 5 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4...v5) Updates `actions/stale` from 9 to 10 - [Release notes](https://github.com/actions/stale/releases) - [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/stale/compare/v9...v10) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major dependency-group: workflows - dependency-name: actions/stale dependency-version: '10' dependency-type: direct:production update-type: version-update:semver-major dependency-group: workflows ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
44 lines
1.5 KiB
YAML
44 lines
1.5 KiB
YAML
name: 🔨 Performance Test
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '0 0 * * 0' # Weekly
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
perf-test:
|
|
strategy:
|
|
matrix:
|
|
count: [50, 100, 150]
|
|
runs-on: ubuntu-latest
|
|
if: github.repository == 'projectdiscovery/nuclei'
|
|
env:
|
|
LIST_FILE: "/tmp/targets-${{ matrix.count }}.txt"
|
|
PROFILE_MEM: "/tmp/nuclei-perf-test-${{ matrix.count }}"
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- uses: projectdiscovery/actions/setup/go@v1
|
|
- run: make verify
|
|
- name: Generate list
|
|
run: for i in {1..${{ matrix.count }}}; do echo "https://honey.scanme.sh/?_=${i}" >> "${LIST_FILE}"; done
|
|
- run: go run . -l "${LIST_FILE}" -profile-mem="${PROFILE_MEM}"
|
|
env:
|
|
NUCLEI_ARGS: host-error-stats
|
|
working-directory: cmd/nuclei/
|
|
- uses: projectdiscovery/actions/flamegraph@v1
|
|
id: flamegraph-cpu
|
|
with:
|
|
profile: "${{ env.PROFILE_MEM }}.cpu"
|
|
name: "${{ env.FLAMEGRAPH_NAME }} CPU profiles"
|
|
continue-on-error: true
|
|
- uses: projectdiscovery/actions/flamegraph@v1
|
|
id: flamegraph-mem
|
|
with:
|
|
profile: "${{ env.PROFILE_MEM }}.mem"
|
|
name: "${{ env.FLAMEGRAPH_NAME }} memory profiles"
|
|
continue-on-error: true
|
|
- if: ${{ steps.flamegraph-mem.outputs.message == '' }}
|
|
run: |
|
|
echo "::notice::CPU flamegraph: ${{ steps.flamegraph-cpu.outputs.url }}"
|
|
echo "::notice::Memory (heap) flamegraph: ${{ steps.flamegraph-mem.outputs.url }}"
|