chore: Upgrade to TypeScript 5.6, eslint 8, and some more (#400) #989
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: | |
branches: | |
- main | |
pull_request: | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
jobs: | |
test-individual: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ ubuntu-latest, windows-latest, macos-latest ] | |
node: [ 18, 20, 22 ] | |
project: | |
[ | |
activities-examples, | |
mutex, | |
nestjs-exchange-rates, | |
timer-examples | |
] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
name: Install pnpm | |
with: | |
run_install: false | |
version: 9 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
# Comment out cache line when testing with act: | |
# (Test command is: act --platform ubuntu-latest=lucasalt/act_base:latest) | |
cache: 'pnpm' | |
- run: pnpm install | |
working-directory: ${{ matrix.project }} | |
- run: npm run build | |
working-directory: ${{ matrix.project }} | |
- run: npm test | |
working-directory: ${{ matrix.project }} | |
lint-format-build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
name: Install pnpm | |
with: | |
run_install: false | |
version: 9 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
cache: 'pnpm' | |
- run: pnpm install | |
- run: pnpm lint | |
- run: pnpm format:check | |
- run: pnpm build |