-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (47 loc) · 1.28 KB
/
vibe-check.yml
File metadata and controls
58 lines (47 loc) · 1.28 KB
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
name: Vibe Check
on:
push:
pull_request:
workflow_dispatch:
concurrency:
group: vibe-check-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: write
pull-requests: write
env:
DO_NOT_TRACK: 1
TURBO_TELEMETRY_DISABLED: 1
VERCEL_TELEMETRY_DISABLED: 1
jobs:
vibe-check:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v6
with:
persist-credentials: false
- name: Install pnpm 📦
uses: pnpm/action-setup@v4
# use version from package.json#packageManager field
with:
run_install: false
- uses: actions/setup-node@v6
with:
node-version-file: ".nvmrc"
cache: "pnpm"
- name: Install Dependencies 📥
run: |
pnpm install
- name: Fmt, Lint, and Type Check 🧹
run: | # Run the lint and type check
pnpm run typecheck
pnpm run lint
pnpm run fmt:check
- name: Test 🧪
run: | # Run the tests
pnpm run test
- name: Ensure Package is Publishable 🧐
run: | # Run the prepublish hook to ensure the package is publishable, and that the package.json is up to date
pnpm run prepublishOnly
git diff --exit-code