-
Notifications
You must be signed in to change notification settings - Fork 8
40 lines (31 loc) · 893 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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