Skip to content

Fix github actions permissions #156

Fix github actions permissions

Fix github actions permissions #156

name: Compatible Typescript Versions
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
typescript-version: [4.2, 4.3, 4.4, 4.5, 4.6, 4.7, 4.8, 4.9, 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6 ]
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- name: Use Node.js 22.x
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
with:
node-version: 22.x
- run: npm ci
- run: npm run build
- run: npm install typescript@${{ matrix.typescript-version }}
- run: npx tsc spec/ts-compat-test.ts --noEmit --skipLibCheck