-
Notifications
You must be signed in to change notification settings - Fork 1
62 lines (55 loc) · 1.52 KB
/
pull-request.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
52
53
54
55
56
57
58
59
60
61
62
name: pull-request
on:
pull_request:
jobs:
lint:
name: eslint & prettier
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: setup pnpm
uses: ./.github/workflows/actions/setup-pnpm
- name: eslint
run: pnpm eslint
- name: pettier
run: pnpm prettier
type-check:
name: type check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: setup pnpm
uses: ./.github/workflows/actions/setup-pnpm
- name: type-check
run: pnpm run type-check
tests:
name: tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: setup pnpm
uses: ./.github/workflows/actions/setup-pnpm
- name: tests
run: pnpm test
- name: Upload zod-firebase coverage to Codecov
uses: codecov/codecov-action@v5
with:
directory: ./packages/zod-firebase/coverage
flags: firebase
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload zod-firebase-admin coverage to Codecov
uses: codecov/codecov-action@v5
with:
directory: ./packages/zod-firebase-admin/coverage
flags: firebase-admin
token: ${{ secrets.CODECOV_TOKEN }}
- name: integration tests
run: npm run test:integration:ci
markdown:
name: markdown lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DavidAnson/markdownlint-cli2-action@v18
with:
globs: '**/*.md'