-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (36 loc) · 968 Bytes
/
ci.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
41
42
43
44
45
46
47
48
name: CI
on:
workflow_call:
jobs:
tests:
timeout-minutes: 10
name: "Tests"
runs-on: ubuntu-latest
steps:
- name: Checkout project
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- uses: actions/cache@v4
with:
path: |
**/node_modules
.yarn/install-state.gz
.yarn/cache
key: yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: yarn-
- name: Install dependencies
run: yarn install
- name: Make sure to use same dependencies version across all packages
run: yarn dedupe --check
- name: typecheck
run: yarn typecheck:ci
- name: lint
run: yarn lint
- name: start postgres service
run: docker compose up -d --wait postgres
- name: test
run: yarn test:ci
- name: prettier
run: yarn prettier:check