feat: add hive lab renderer #11955
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Benchmarks | |
| on: | |
| push: | |
| branches: | |
| - 'main' | |
| pull_request: | |
| paths-ignore: | |
| - 'website/**' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| benchmarks: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Setup env | |
| uses: the-guild-org/shared-config/setup@v1 | |
| with: | |
| node-version-file: .node-version | |
| - name: Build Packages | |
| run: pnpm build | |
| - name: Setup K6 | |
| run: | | |
| wget https://github.com/grafana/k6/releases/download/v0.37.0/k6-v0.37.0-linux-amd64.deb | |
| sudo apt-get update | |
| sudo apt-get install ./k6-v0.37.0-linux-amd64.deb | |
| - name: Start Yoga Server | |
| working-directory: ./benchmark | |
| run: | | |
| pnpm test | |
| env: | |
| NODE_NO_WARNINGS: true | |
| NODE_ENV: production | |
| GITHUB_PR: ${{ github.event.number }} | |
| GITHUB_SHA: ${{ github.sha }} | |
| GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }} | |
| envelop: | |
| name: envelop benchmarks | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| - name: Setup env | |
| uses: the-guild-org/shared-config/setup@v1 | |
| with: | |
| node-version-file: '.node-version' | |
| - name: Build | |
| run: pnpm run build | |
| - name: Setup K6 | |
| run: | | |
| sudo gpg -k | |
| sudo gpg --no-default-keyring --keyring /usr/share/keyrings/k6-archive-keyring.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys C5AD17C747E3415A3642D57D77C6C491D6AC1D69 | |
| echo "deb [signed-by=/usr/share/keyrings/k6-archive-keyring.gpg] https://dl.k6.io/deb stable main" | sudo tee /etc/apt/sources.list.d/k6.list | |
| sudo apt-get update | |
| sudo apt-get install k6 | |
| - name: GraphQL API | |
| run: | | |
| pnpm run --filter @envelop/benchmark loadtest:start-server & | |
| pnpm wait-on tcp:3000 | |
| - name: Run Benchmark | |
| run: | |
| k6 -e GITHUB_PR=${{ github.event.number }} -e GITHUB_SHA=${{ github.sha }} -e | |
| GITHUB_TOKEN=${{secrets.GH_API_TOKEN}} -e GRAPHQL_HOSTNAME="[::1]" run | |
| ./benchmark/envelop/k6.js |