-
-
Notifications
You must be signed in to change notification settings - Fork 3
66 lines (52 loc) · 1.84 KB
/
Copy pathe2e-plugin.yml
File metadata and controls
66 lines (52 loc) · 1.84 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
name: e2e-plugin-hooks
on:
push:
branches-ignore:
- master
- stag-**
paths:
- 'packages/claude-code-plugin/hooks/**'
- '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
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