Skip to content

feat: measure key hold duration in getKeyboardResponse and record rt_key_duration in keyboard response plugins #2281

feat: measure key hold duration in getKeyboardResponse and record rt_key_duration in keyboard response plugins

feat: measure key hold duration in getKeyboardResponse and record rt_key_duration in keyboard response plugins #2281

Workflow file for this run

name: build
on:
push:
# Preview branches contain only built dist artifacts (no source), so the
# build/lint/test job would always fail on them. They're created by the
# preview-publish workflow on every PR push, which would otherwise trigger
# this workflow many times per PR.
branches-ignore:
- 'preview/**'
pull_request:
types: [opened, reopened, ready_for_review, review_requested, synchronize]
jobs:
test:
name: Build, lint, and test on Node.js ${{ matrix.node }}
runs-on: ubuntu-latest
permissions:
contents: read
strategy:
matrix:
node: [18, 20]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup Node.js ${{ matrix.node }}
uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3.9.1
with:
node-version: ${{ matrix.node }}
cache: npm
- name: Install dependencies
run: npm ci
# Running this after `npm ci` because `npm ci` removes `node_modules`:
- name: Download Turborepo cache
uses: actions/cache@6f8efc29b200d32929f49075959781ed54ec270c # v3.5.0
with:
path: node_modules/.cache/turbo
key: ${{ runner.os }}-node-${{ matrix.node }}-turbo-${{ hashFiles('node_modules/.cache/turbo') }}
restore-keys: |
${{ runner.os }}-node-${{ matrix.node }}-turbo-
- name: Check types
run: npm run tsc
- name: Build packages
run: npm run build
- name: Run tests
run: npm run test -- --ci --coverage --maxWorkers=2 --reporters=default --reporters=github-actions