Files
dify-plugin-daemon/.github/workflows/tests-plugin-integration.yml
Yeuoly 4b75eed6b7 refactor: separate CI tests, and support pg bouncer (#529)
* feat: add support for PgBouncer in database initialization

* refactor: consolidate gorm configuration for database connection

* Add MySQL and multi-driver DB integration tests (#535)

* feat: streamline integration tests by using a centralized docker-compose file

* fix: add timeout

* refactor: replace inline service definitions with docker-compose action for integration tests

* fix: update pgbouncer image and environment variable names for consistency
2025-12-17 22:08:47 +08:00

51 lines
1.1 KiB
YAML

name: Plugin Integration Tests
on:
pull_request:
branches:
- main
push:
branches:
- main
concurrency:
group: test-plugin-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
plugin-integration:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Start integration services
uses: hoverkraft-tech/compose-action@v2.0.2
with:
compose-file: |
integration/docker/docker-compose.ci.yml
services: |
redis
postgres
mysql
pgbouncer
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.23'
- name: Install uv
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
echo "UV_PATH=$(which uv)" >> $GITHUB_ENV
- name: Setup License
run: go run cmd/license/generate/main.go
- name: Install dependencies
run: go mod download
- name: Run plugin integration tests
run: go test -v ./integration/plugin/...