Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: add benchmark GitHub workflow #2234

Merged
merged 10 commits into from
Feb 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 playwright@1.35.1 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
Loading