Tutorial example #8520
This file contains 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/**' | |
jobs: | |
benchmarks: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | |
- 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.GITHUB_TOKEN }} |