Format, lint and check for code errors #367
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: 20 | |
- uses: oven-sh/setup-bun@v1 | |
- name: Install | |
run: bun devBun | |
- name: Format | |
run: bun prettier --check client server | |
- name: Lint | |
run: bun lint | |
- name: TypeScript | |
run: bun compile | |
- name: Check if package was just generated | |
run: bun generate-package && git diff --exit-code package.json |