mirror of
https://github.com/stoatchat/javascript-client-sdk.git
synced 2026-07-18 16:34:27 -04:00
38 lines
791 B
YAML
38 lines
791 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]
|
|
|
|
steps:
|
|
- name: Checkout repository and submodules
|
|
uses: actions/checkout@v3
|
|
with:
|
|
submodules: recursive
|
|
- uses: pnpm/action-setup@v2.2.4
|
|
with:
|
|
version: 7
|
|
- 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
|