0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-28 09:16:49 +01:00
posthog/.github/workflows/ci-frontend.yml
Karl-Aksel Puulmann a978b28a68
Run typescript with strict in CI, allow no new errors (#3050)
* Verify no new typescript code breaks "strict" compilation

With this we have a file containing all current errors. As the code
changes, we should not add more errors here.

* remove some lines to show a failure

* Add total count to script

* Update blacklist after rebase

* Remove some fails on purpose.

* Attempt a reorder

* Add missing file

* Update script to write typegen

* Refresh list

* Attempt to use normal tsc

* update blacklist

* Store all errors

* echo for typegen

* Add check command

* typegen 3 times

* typegen 4 times

* typegen 6 times

* typegen 10 times

* remove debug code

* Update kea typegen to latest

* Remove hacks
2021-01-22 16:36:30 +02:00

33 lines
760 B
YAML

name: Frontend CI
on:
- pull_request
jobs:
frontend-code-quality:
name: Code quality checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Node 14
uses: actions/setup-node@v1
with:
node-version: 14
- name: Install package.json dependencies with Yarn
run: yarn
- name: Check formatting with prettier
run: yarn prettier:check
- name: Lint with ESLint
run: yarn eslint
- name: Test with Jest
run: yarn test
- name: Run typescript with strict
run: |
./bin/check-typescript-strict