Repository navigation
118 lines (112 loc) · 3.38 KB
/
Copy pathci.yml
File metadata and controls
118 lines (112 loc) · 3.38 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
name: CI
on:
push:
branches: [main, master]
pull_request:
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node: ['18', '20', '22']
name: test (Node ${{ matrix.node }})
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: ${{ matrix.node }}
cache: npm
- run: npm ci
- run: npm run build
- run: npm test
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: '20'
cache: npm
- run: npm ci
- run: npm run lint
wasm-component:
runs-on: ubuntu-latest
name: capability-free Wasm component
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: '20'
cache: npm
cache-dependency-path: |
package-lock.json
wasm/capcut-core/package-lock.json
- run: npm ci
- run: npm --prefix wasm/capcut-core ci
- run: npm --prefix wasm/capcut-core audit --audit-level=high
- run: npm run wasm:verify
- name: Write artifact checksum
run: cd dist && sha256sum capcut-core.wasm > capcut-core.wasm.sha256
working-directory: wasm/capcut-core
- name: Install checksum-pinned Wassette 0.7.0
shell: bash
run: |
curl -fsSLo "$RUNNER_TEMP/wassette.tar.gz" \
https://github.com/microsoft/wassette/releases/download/v0.7.0/wassette_0.7.0_linux_amd64.tar.gz
echo "c030964b92a1fb9862fc59b8c318099eba501f83a798b822cb9a394fb0f85f20 $RUNNER_TEMP/wassette.tar.gz" \
| sha256sum --check --strict
mkdir -p "$RUNNER_TEMP/wassette"
tar -xzf "$RUNNER_TEMP/wassette.tar.gz" -C "$RUNNER_TEMP/wassette"
- name: Exercise all tools through MCP
run: npm --prefix wasm/capcut-core run verify:mcp
env:
WASSETTE_BIN: ${{ runner.temp }}/wassette/wassette
- uses: actions/upload-artifact@v7
with:
name: capcut-core-wasm
path: |
wasm/capcut-core/dist/capcut-core.wasm
wasm/capcut-core/dist/capcut-core.wasm.sha256
wasm/capcut-core/THIRD_PARTY_NOTICES.md
LICENSE
if-no-files-found: error
platform-smoke:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
name: platform smoke (${{ matrix.os }})
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: '20'
cache: npm
- run: npm ci
- run: npm test
python-client:
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
python: '3.9'
- os: ubuntu-latest
python: '3.14'
- os: windows-latest
python: '3.9'
- os: windows-latest
python: '3.14'
- os: macos-latest
python: '3.14'
runs-on: ${{ matrix.os }}
name: Python client (${{ matrix.os }}, ${{ matrix.python }})
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python }}
- run: python -m unittest discover -s python/tests -v