-
-
Notifications
You must be signed in to change notification settings - Fork 4
81 lines (65 loc) · 2.47 KB
/
Copy pathe2e-plugin.yml
File metadata and controls
81 lines (65 loc) · 2.47 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
name: e2e-plugin-hooks
on:
push:
branches-ignore:
- master
- stag-**
paths:
- 'packages/claude-code-plugin/hooks/**'
- 'packages/claude-code-plugin/tests/**'
- 'packages/claude-code-plugin/scripts/verify-install-simulation.sh'
- 'tests/e2e/plugin-hooks/**'
- .github/workflows/e2e-plugin.yml
permissions:
statuses: write
contents: read
jobs:
e2e-plugin-hooks:
if: github.repository == 'JeremyDev87/codingbuddy'
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
matrix:
python-version: ['3.11', '3.12']
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: ${{ matrix.python-version }}
- name: Setup node.js
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
with:
node-version: '24'
- name: Install Python test dependencies
run: pip install -r tests/e2e/plugin-hooks/requirements.txt
- name: Configure git for tests
run: |
git config --global user.name "CI Bot"
git config --global user.email "ci@test.local"
git config --global init.defaultBranch main
- name: Run E2E plugin hook tests
run: python3 -m pytest tests/e2e/plugin-hooks/ -v --timeout=30 --tb=short
- name: Plugin hook unit/E2E regression suites (#1490)
working-directory: packages/claude-code-plugin
run: |
python3 -m pytest \
tests/test_atomic_sync_with_lib.py \
tests/test_session_start_hud.py \
tests/test_install_hook_with_lib.py \
tests/test_health_check.py \
-v --tb=short
- name: HUD install simulation (#1490 end-to-end gate)
run: bash packages/claude-code-plugin/scripts/verify-install-simulation.sh
e2e-plugin-docker:
if: github.repository == 'JeremyDev87/codingbuddy'
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Build Docker test image
run: docker build -t codingbuddy-e2e-plugin -f tests/e2e/plugin-hooks/Dockerfile .
- name: Run E2E tests in Docker
run: docker run --rm codingbuddy-e2e-plugin