-
Notifications
You must be signed in to change notification settings - Fork 4
51 lines (41 loc) · 1.15 KB
/
test-lint.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
49
50
51
name: Test and lint
on:
push:
paths-ignore:
- '**/*.md' # Ignore changes to markdown files
pull_request:
paths-ignore:
- '**/*.md' # Ignore changes to markdown files
jobs:
test-lint:
environment: Github CI
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install bun for deployment
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
# install deps
- name: Install lib deps
working-directory: ./packages/litlytics
run: bun install --frozen-lockfile
- name: Install app deps
run: bun install --frozen-lockfile
# lib lint/check/test
- name: Run lib typecheck
working-directory: ./packages/litlytics
run: bun run typecheck
- name: Run lib tests
working-directory: ./packages/litlytics
run: bun run test:ci
# main app lint/check/test
- name: Run app eslint
run: bun run lint
- name: Run app typecheck
run: bun run typecheck
- name: Run app test
run: bun run test:ci