Files
javascript-client-sdk/.github/workflows/lint.yml
T
Rexogamer 2e19bb28f9 ci: use correct version of pnpm + node 20
turns out [this is optional](https://github.com/pnpm/action-setup/tree/master#version) if `packageManager` is set in `package.json` (which it is). I imagine the version mismatch was the cause of our woes
2024-06-26 11:30:00 +01:00

36 lines
762 B
YAML

name: Lint
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x, 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