-
Notifications
You must be signed in to change notification settings - Fork 14
46 lines (38 loc) · 876 Bytes
/
pr.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
name: PR
on:
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
paths:
- "app/**"
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
lint:
name: Lint & format
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Node.js 14.x
uses: oven-sh/setup-bun@v2
with:
bun-version: "1.x"
- name: Install locked dependencies
run: bun install --frozen-lockfile
- name: Lint files
run: bun run lint
env:
CI: true
- name: Lint files
run: bun run format
env:
CI: true
- name: Lint files
run: bun run type-check
env:
CI: true