Skip to content

Typescript project setup #2

Typescript project setup

Typescript project setup #2

Workflow file for this run

name: Lint (TypeScript)
on:
pull_request:
workflow_dispatch:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: "18"
- uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node_modules-
- name: Install dependencies
run: npm install
working-directory: js
- name: Run eslint
run: npm run lint
working-directory: js