-
Notifications
You must be signed in to change notification settings - Fork 3
86 lines (65 loc) · 2.02 KB
/
quality.yml
File metadata and controls
86 lines (65 loc) · 2.02 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
name: Quality
on:
workflow_dispatch: {}
push:
branches:
- main
pull_request:
branches:
- main
jobs:
linting:
name: Linting
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup linting
uses: ./.github/actions/setup
- name: Lint - TypeScript
run: pnpm --filter @commercetools/agent-essentials run lint
- name: Lint - Model Context Protocol
run: pnpm --filter @commercetools/mcp-essentials run lint
formatting:
name: Formatting
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup formatting
uses: ./.github/actions/setup
- name: Prettier - TypeScript
run: pnpm --filter @commercetools/agent-essentials run prettier-check
- name: Prettier - Model Context Protocol
run: pnpm --filter @commercetools/mcp-essentials run prettier-check
testing:
name: Testing
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup testing
uses: ./.github/actions/setup
- name: Test - TypeScript
run: pnpm --filter @commercetools/agent-essentials run test
- name: Test - Model Context Protocol
run: |
# Builds types which are neededin tests
pnpm --filter @commercetools/agent-essentials run build
pnpm --filter @commercetools/mcp-essentials run test
building:
name: Building
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup testing
uses: ./.github/actions/setup
- name: Test - TypeScript
run: |
pnpm --filter @commercetools/agent-essentials run build
pnpm --filter @commercetools/agent-essentials run clean
- name: Test - Model Context Protocol
run: |
pnpm --filter @commercetools/mcp-essentials run build
pnpm --filter @commercetools/mcp-essentials run clean