Update TS to ES2022 (supported by our engines anyway) #107
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: CI | |
on: [push, pull_request] | |
jobs: | |
build: | |
name: Build & test | |
runs-on: ubuntu-latest | |
container: | |
image: httptoolkit/act-build-base:v3.0.0 | |
options: --privileged # Required for Frida attach in tests | |
strategy: | |
matrix: | |
node-version: [18.x, 20.x, v20.11.1, 22.x, '*'] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
check-latest: true | |
cache: 'npm' | |
cache-dependency-path: 'package.json' | |
- run: npm install | |
- name: 'Allow attaching to running Linux processes' | |
run: sudo sysctl kernel.yama.ptrace_scope=0 | |
- run: npm test | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |