Skip to content

chore(deps): update dependency @types/node to v16.18.94 #1055

chore(deps): update dependency @types/node to v16.18.94

chore(deps): update dependency @types/node to v16.18.94 #1055

Workflow file for this run

name: Benchmark
on:
push:
branches:
- main
pull_request: {}
jobs:
bench:
name: Benchmark
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Use Node 14
uses: actions/setup-node@master
with:
node-version: 14
- name: Get yarn cache
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Cache Yarn
uses: actions/cache@v2
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-14-15-16-yarn-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-14-15-16-yarn-
- name: Install Dependencies using Yarn
run: yarn install --frozen-lockfile --ignore-engines --update-checksums
- name: Build
run: (cd packages/core && yarn 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: Run Benchmark
run: |
yarn loadtest:start-server &
yarn wait-on tcp:5000
k6 -e GITHUB_PR=${{ github.event.number }} -e GITHUB_SHA=${{ github.sha }} -e GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} -e GRAPHQL_HOSTNAME=0.0.0.0 run ./benchmark/k6.js