-
Notifications
You must be signed in to change notification settings - Fork 6
64 lines (58 loc) · 1.7 KB
/
e2e.yaml
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
name: E2E Test
on:
push:
branches:
- main
pull_request:
branches:
- main
types: [opened, synchronize, reopened, labeled]
jobs:
apisix:
runs-on: ubuntu-latest
strategy:
matrix:
version: [3.8.1, 3.9.1, 3.10.0, 3.11.0]
env:
BACKEND_APISIX_VERSION: ${{ matrix.version }}
BACKEND_APISIX_IMAGE: ${{ matrix.version }}-debian
steps:
- uses: actions/checkout@v4
# Setup backend environment
- name: Setup Apache APISIX
working-directory: ./libs/backend-apisix/e2e/assets
run: docker compose up -d; sleep 10
# Build and test ADC CLI
- uses: actions/setup-node@v4
with:
node-version: 'lts/*'
- uses: pnpm/action-setup@v2
with:
version: latest
- name: Install dependencies
run: pnpm install
# Run E2E tests
- name: Run E2E tests
run: npx nx run backend-apisix:e2e
api7:
runs-on: ubuntu-latest
if: contains(github.event.pull_request.labels.*.name, 'test/api7') || github.event_name == 'push'
strategy:
matrix:
version: [3.2.14.6, 3.2.15.2, 3.2.16.2]
env:
BACKEND_API7_VERSION: ${{ matrix.version }}
BACKEND_API7_DOWNLOAD_URL: https://run.api7.ai/api7-ee/api7-ee-v${{ matrix.version }}.tar.gz
BACKEND_API7_LICENSE: ${{ secrets.BACKEND_API7_LICENSE }}
steps:
- uses: actions/checkout@v4
# Build and test ADC CLI
- uses: actions/setup-node@v4
with:
node-version: 'lts/*'
- uses: pnpm/action-setup@v4
- name: Install dependencies
run: pnpm install
# Run API7 E2E tests
- name: Run E2E tests
run: npx nx run backend-api7:e2e