TypeScript SDK Linter main by @alvaroloes #1
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: TypeScript SDK Linter | |
run-name: "TypeScript SDK Linter ${{ github.ref_name }} by @${{ github.actor }}" | |
on: | |
pull_request: | |
paths: | |
- "sdks/typescript/**" | |
push: | |
branches: | |
- "main" | |
paths: | |
- "sdks/typescript/**" | |
workflow_dispatch: | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: sdks/typescript | |
steps: | |
- name: Checkout code | |
uses: actions/[email protected] | |
- name: Set up Node.js | |
uses: actions/[email protected] | |
with: | |
node-version: "20" | |
- name: Install dependencies | |
run: npm install | |
- name: ESLint | |
run: npm run lint | |
- name: Type check | |
run: npm run typecheck |