X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=.github%2Fworkflows%2Finternal-benchmark.yml;h=1e3115f4c86a46c427e444d68aa13b07fbc240dd;hb=a9fc134421fb6926f4eff76d1d82c9bd8b341606;hp=e1ae5a1b0c8a7e0c2b8fe97c622c747de043c143;hpb=25926072f5397949802f6af5a2f7d49d6f15cacc;p=poolifier.git diff --git a/.github/workflows/internal-benchmark.yml b/.github/workflows/internal-benchmark.yml index e1ae5a1b..1e3115f4 100644 --- a/.github/workflows/internal-benchmark.yml +++ b/.github/workflows/internal-benchmark.yml @@ -6,40 +6,40 @@ on: branches: - master -permissions: - contents: write - deployments: write - jobs: internal-benchmark: if: github.repository == 'poolifier/poolifier' - runs-on: [self-hosted, internal-benchmark] + runs-on: + group: default + labels: [self-hosted, internal-benchmark] + env: + BENCHER_PROJECT: poolifier + BENCHER_API_TOKEN: ${{ secrets.BENCHER_API_TOKEN }} + BENCHER_ADAPTER: js_benchmark + BENCHER_TESTBED: self-hosted steps: - name: Checkout uses: actions/checkout@v4 - name: Setup pnpm - uses: pnpm/action-setup@v2 + uses: pnpm/action-setup@v3 with: - version: 8 + version: 9 - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: '18.x' + node-version: 20.x + check-latest: true cache: 'pnpm' - name: Install dependencies - run: pnpm install --ignore-scripts - - name: Run production benchmark - run: pnpm benchmark:prod | tee ./benchmarks/internal/output.txt - - name: Store production benchmark result - uses: benchmark-action/github-action-benchmark@v1 - with: - name: Internal benchmark - tool: 'benchmarkjs' - output-file-path: ./benchmarks/internal/output.txt - github-token: ${{ secrets.BENCHMARK_RESULTS_TOKEN }} - auto-push: true - alert-threshold: '200%' - comment-on-alert: true - fail-on-alert: true - max-items-in-chart: 50 - gh-repository: 'github.com/poolifier/benchmark-results' + run: pnpm install --ignore-scripts --frozen-lockfile + # - uses: bencherdev/bencher@main + # - name: Run production benchmark + # run: | + # bencher run \ + # --if-branch "$GITHUB_REF_NAME" \ + # --else-if-branch "$GITHUB_BASE_REF" \ + # --else-if-branch master \ + # --hash "$GITHUB_SHA" \ + # --err \ + # --github-actions ${{ secrets.GITHUB_TOKEN }} \ + # "pnpm benchmark:benchmark.js:prod"