-
Notifications
You must be signed in to change notification settings - Fork 8
38 lines (30 loc) · 857 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
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