0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-30 19:41:46 +01:00
posthog/.github/workflows/ci-frontend.yml
posthog-contributions-bot[bot] f962d65242
🤖: Add paolodamico as a contributor 🎉 (#3813)
* docs: update README.md

* docs: update .all-contributorsrc

* yet another ci fix

Co-authored-by: posthog-contributions-bot[bot] <80958034+posthog-contributions-bot[bot]@users.noreply.github.com>
Co-authored-by: yakkomajuri <yakko.majuri@gmail.com>
2021-03-30 16:15:42 +00:00

49 lines
1.1 KiB
YAML

name: Frontend CI
on:
- pull_request
jobs:
frontend-code-quality:
name: Code quality checks
runs-on: ubuntu-20.04
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: Run typescript with strict
run: |
./bin/check-typescript-strict
jest:
name: Jest tests
runs-on: ubuntu-20.04
if: ${{ github.actor != 'posthog-contributions-bot[bot]' }}
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: Test with Jest
run: yarn test