-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (51 loc) · 1.53 KB
/
Copy pathtest.yml
File metadata and controls
65 lines (51 loc) · 1.53 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
59
60
61
62
63
64
65
name: CI
on:
pull_request:
paths:
- "packages/**"
- "package.json"
- "pnpm-lock.yaml"
- "pnpm-workspace.yaml"
- "tsconfig.json"
- "eslint.config.js"
- "prettier.config.mjs"
- ".github/workflows/test.yml"
push:
branches: [master]
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
verify:
name: Build, test, and audit
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- name: Set up pnpm
uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9
with:
version: 10
- name: Set up Node.js
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: "24"
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Lint
run: pnpm --filter @upstash/context7-mcp lint:check
- name: Format
run: pnpm --filter @upstash/context7-mcp format:check
- name: Build
run: pnpm --filter @upstash/context7-mcp build
- name: Typecheck
run: pnpm --filter @upstash/context7-mcp typecheck
- name: Test local MCP
run: pnpm --filter @upstash/context7-mcp test
- name: Audit production dependencies
run: pnpm audit --prod --audit-level low