Format, lint and check for code errors #261
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'Format, lint and check for code errors' | |
on: | |
push: | |
paths-ignore: | |
- '**.md' | |
schedule: | |
- cron: '0 0 1 * *' | |
create: | |
tags: | |
- '*' | |
jobs: | |
lint-and-tsc: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 14 | |
- name: Install | |
run: yarn devYarn | |
- name: Format | |
run: yarn prettier --check client server | |
- name: Lint | |
run: yarn lint | |
- name: TypeScript | |
run: yarn compile | |
- name: Check if package was just generated | |
run: yarn generate-package && git diff --exit-code package.json |