feat: bump to 0.16.0 #266
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |