Files
javascript-client-sdk/.github/workflows/lint.yml
T
Rexogamer 082ba87a59 fix(ci): drop node 16
pnpm v9 drops support for it. it's [eol anyway](https://nodejs.org/en/blog/announcements/nodejs16-eol)
2024-06-26 11:39:06 +01:00

36 lines
756 B
YAML

name: Lint
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x]
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v3
with:
submodules: recursive
- uses: pnpm/action-setup@v4.0.0
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
- name: Install packages
run: pnpm install
- name: Typecheck
run: pnpm typecheck
- name: Code Formatting
run: pnpm fmt:check
- name: Lint
run: pnpm lint