~cytrogen/masto-fe

b80a7b031bdfc79e0498bb784abed9b7749c6f45 — Nick Schonning 3 years ago 0358abe
Add typechecking in CI (#24405)

2 files changed, 11 insertions(+), 0 deletions(-)

M .github/workflows/lint-js.yml
M .prettierignore
M .github/workflows/lint-js.yml => .github/workflows/lint-js.yml +9 -0
@@ 6,22 6,28 @@ on:
    paths:
      - 'package.json'
      - 'yarn.lock'
      - 'tsconfig.json'
      - '.nvmrc'
      - '.prettier*'
      - '.eslint*'
      - '**/*.js'
      - '**/*.jsx'
      - '**/*.ts'
      - '**/*.tsx'
      - '.github/workflows/lint-js.yml'

  pull_request:
    paths:
      - 'package.json'
      - 'yarn.lock'
      - 'tsconfig.json'
      - '.nvmrc'
      - '.prettier*'
      - '.eslint*'
      - '**/*.js'
      - '**/*.jsx'
      - '**/*.ts'
      - '**/*.tsx'
      - '.github/workflows/lint-js.yml'

jobs:


@@ 43,3 49,6 @@ jobs:

      - name: ESLint
        run: yarn test:lint:js

      - name: Typecheck
        run: yarn test:typecheck

M .prettierignore => .prettierignore +2 -0
@@ 70,6 70,8 @@ app/javascript/styles/mastodon/reset.scss
# Ignore Javascript pending https://github.com/mastodon/mastodon/pull/23631
*.js
*.jsx
*.ts
*.tsx

# Ignore HTML till cleaned and included in CI
*.html