Repository navigation
101 lines (78 loc) · 2.83 KB
/
Copy pathci.yml
File metadata and controls
101 lines (78 loc) · 2.83 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
name: Node.js CI
on:
pull_request:
branches: [main]
push:
branches: [main]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-26.04
steps:
- name: Checkout code
uses: actions/checkout@v7
- name: Use Node.js 22
uses: actions/setup-node@v7
with:
node-version: 22.x
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Audit production dependencies
run: npx audit-ci --high --skip-dev
- name: Type-check
run: npx tsc --noEmit
- name: Unit tests
run: yarn test
- name: Build the project
run: yarn build
mcp-direct-tests:
runs-on: ubuntu-26.04
env:
LOCALSTACK_AUTH_TOKEN: ${{ secrets.LOCALSTACK_AUTH_TOKEN }}
steps:
# GitHub gives pull requests from forks no secrets. Fail loud rather than skip, so a
# fork PR never looks tested.
- name: Require the LocalStack auth token
if: env.LOCALSTACK_AUTH_TOKEN == ''
run: |
echo "::error::LOCALSTACK_AUTH_TOKEN is empty. GitHub gives pull requests from forks no secrets: before merging, a maintainer pushes this branch to the repository and opens a pull request from it."
exit 1
- name: Checkout code
uses: actions/checkout@v7
- name: Use Node.js 22
uses: actions/setup-node@v7
with:
node-version: 22.x
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Run MCP Server Tester
run: yarn test:mcp:direct
# Each tool against a real LocalStack, without a model (tests/mcp/tools.spec.mjs). The first
# test starts LocalStack through the management tool.
mcp-tool-tests:
runs-on: ubuntu-26.04
env:
LOCALSTACK_AUTH_TOKEN: ${{ secrets.LOCALSTACK_AUTH_TOKEN }}
steps:
# GitHub gives pull requests from forks no secrets. Fail loud rather than skip, so a
# fork PR never looks tested.
- name: Require the LocalStack auth token
if: env.LOCALSTACK_AUTH_TOKEN == ''
run: |
echo "::error::LOCALSTACK_AUTH_TOKEN is empty. GitHub gives pull requests from forks no secrets: before merging, a maintainer pushes this branch to the repository and opens a pull request from it."
exit 1
- name: Checkout code
uses: actions/checkout@v7
- name: Use Node.js 22
uses: actions/setup-node@v7
with:
node-version: 22.x
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Install the image's tools
uses: ./.github/actions/host-tools
# Pulled up front so the start stays within the management tool's 120s.
- name: Pull the LocalStack image
run: docker pull localstack/localstack-pro:latest
- name: Run the tool tests
run: yarn test:mcp:tools