Skip to content

Commit

Permalink
test: add benchmark GitHub workflow (#2234)
Browse files Browse the repository at this point in the history
Co-authored-by: Kevin Ingersoll <[email protected]>
  • Loading branch information
yonadaaa and holic authored Feb 23, 2024
1 parent 15d8c6a commit f8af70f
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/bench.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Benchmarks

on:
workflow_dispatch:

jobs:
benchmarks:
name: Run benchmarks
runs-on: ubuntu-latest-16-cores
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup
uses: ./.github/actions/setup

- name: Build
uses: ./.github/actions/build

- name: Install end-to-end testing dependencies
working-directory: ./e2e
run: pnpm install

- name: Clean end-to-end project
working-directory: ./e2e
run: pnpm run clean

- name: Build end-to-end project
working-directory: ./e2e
run: pnpm run build

- name: Generate test data
working-directory: ./e2e
run: pnpm run generate-test-data-records

- name: Run benchmarks
run: pnpm run bench
1 change: 1 addition & 0 deletions e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"scripts": {
"build": "pnpm recursive run build",
"clean": "pnpm recursive run clean",
"generate-test-data-records": "pnpm run --filter=test-data generate-test-data-records",
"playwright-install": "pnpx [email protected] install --with-deps chromium",
"test": "pnpm recursive run test",
"test:ci": "pnpm run test"
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"scripts": {
"all-codegen": "for dir in packages/store packages/world packages/world-modules packages/cli e2e/packages/contracts examples/*/packages/contracts templates/*/packages/contracts; do (cd \"$dir\" && pwd && pnpm build); done",
"all-install": "for dir in . docs e2e examples/* templates/*; do (cd \"$dir\" && pwd && pnpm install); done",
"bench": "pnpm run --recursive bench",
"build": "turbo run build",
"clean": "turbo run clean",
"dev": "turbo run dev --concurrency 100",
Expand Down

0 comments on commit f8af70f

Please sign in to comment.