mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-28 09:16:49 +01:00
a978b28a68
* 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
33 lines
760 B
YAML
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
|