diff --git a/.github/workflows/codspeed.yml b/.github/workflows/codspeed.yml index 8470f88b..5fdaffa4 100644 --- a/.github/workflows/codspeed.yml +++ b/.github/workflows/codspeed.yml @@ -2,19 +2,23 @@ name: codspeed-benchmarks on: push: - branches: [ "main" ] + branches: ["main"] paths: - - 'packages/next-yak/**' - - 'packages/benchmark/**' - - '.github/workflows/codspeed.yml' + - "packages/next-yak/**" + - "packages/benchmark/**" + - ".github/workflows/codspeed.yml" pull_request: - branches: [ "main" ] + branches: ["main"] paths: - - 'packages/next-yak/**' - - 'packages/benchmark/**' - - '.github/workflows/codspeed.yml' + - "packages/next-yak/**" + - "packages/benchmark/**" + - ".github/workflows/codspeed.yml" workflow_dispatch: +# enable step debug logging +env: + ACTIONS_STEP_DEBUG: true + jobs: benchmarks: runs-on: ubuntu-latest @@ -48,9 +52,9 @@ jobs: - name: Build Yak run: pnpm run build - name: Build benchmark suite - run: cd packages/benchmark && pnpm run codspeed + run: cd packages/benchmark && pnpm run codspeed - name: Run benchmarks - uses: CodSpeedHQ/action@v1 + uses: CodSpeedHQ/action@v2 with: working-directory: "packages/benchmark" run: NODE_ENV=production node --enable-source-maps ./codspeed/dist/index.bench.mjs