Skip to content

Use the same context object in the entire pipeline (#3051) #7172

Use the same context object in the entire pipeline (#3051)

Use the same context object in the entire pipeline (#3051) #7172

Workflow file for this run

name: test
on:
push:
branches:
- 'main'
pull_request:
paths-ignore:
- 'website/**'
jobs:
benchmarks:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4
- name: Setup env
uses: the-guild-org/shared-config/setup@main
with:
nodeVersion: 18
packageManager: pnpm
- name: Build Packages
run: pnpm build
- name: Setup K6
run: |
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys C5AD17C747E3415A3642D57D77C6C491D6AC1D69
echo "deb 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=0.37.0
- 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 }}