Skip to content

tdl v8.0.2

tdl v8.0.2 #713

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
build-and-test:
name: 'Test / Node v${{ matrix.node }} / ${{ matrix.os }}'
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
# Weirdly arm64 macos-14 doesn't really work because typescript fails with
# RangeError: Maximum call stack size exceeded at getOuterTypeParameters
- macos-13
- windows-latest
node:
- 20
include:
# The packages themselves should still work with Node v16, but the
# dev dependencies don't support v16 anymore
- node: 18
os: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: npm
- name: Update npm
run: npm install -g npm@9
- run: npm install # also runs the `prepare` npm script, which runs `build`
- run: npm test
- run: npm uninstall -D prebuilt-tdlib
- name: Run integration tests
shell: pwsh
run: |
$ErrorActionPreference = "Stop"
$tds = @(
"td-1.8.33",
"td-1.8.30",
"td-1.8.27",
"td-1.8.26",
"td-1.8.25",
"td-1.8.19",
"td-1.8.14",
"td-1.8.0"
)
foreach ($td in $tds) {
mkdir $td
npm install -D prebuilt-tdlib@$td
npm run test:integration
if ($LastExitCode -ne 0) {
exit $LastExitCode
}
npm uninstall -D prebuilt-tdlib
}