Skip to content

Commit

Permalink
Separating Plugin Tests to Their Own CI Run (#4822)
Browse files Browse the repository at this point in the history
* separating plugin tests to their own run
  • Loading branch information
crysmags authored Oct 24, 2024
1 parent c53c395 commit fcecd86
Show file tree
Hide file tree
Showing 2 changed files with 79 additions and 2 deletions.
69 changes: 67 additions & 2 deletions .github/workflows/plugins.yml
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,14 @@ jobs:
- uses: actions/checkout@v4
- uses: ./.github/actions/plugins/test

body-parser:
runs-on: ubuntu-latest
env:
PLUGINS: body-parser
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/plugins/test

bunyan:
runs-on: ubuntu-latest
env:
Expand Down Expand Up @@ -259,6 +267,14 @@ jobs:
- run: yarn test:plugins:ci
- uses: codecov/codecov-action@v2

cookie-parser:
runs-on: ubuntu-latest
env:
PLUGINS: cookie-parser
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/plugins/test

couchbase:
strategy:
matrix:
Expand Down Expand Up @@ -366,7 +382,22 @@ jobs:
express:
runs-on: ubuntu-latest
env:
PLUGINS: express|body-parser|cookie-parser
PLUGINS: express
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/plugins/test

express-mongo-sanitize:
runs-on: ubuntu-latest
services:
mongodb:
image: circleci/mongo
ports:
- 27017:27017
env:
PLUGINS: express-mongo-sanitize
PACKAGE_NAMES: express-mongo-sanitize
SERVICES: mongo
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/plugins/test
Expand Down Expand Up @@ -547,6 +578,23 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/plugins/test

mariadb:
runs-on: ubuntu-latest
services:
mysql:
image: mariadb:10.4
env:
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
MYSQL_DATABASE: 'db'
ports:
- 3306:3306
env:
PLUGINS: mariadb
SERVICES: mariadb
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/plugins/test

memcached:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -641,12 +689,29 @@ jobs:
ports:
- 3306:3306
env:
PLUGINS: mysql|mysql2|mariadb # TODO: move mysql2 to its own job
PLUGINS: mysql
SERVICES: mysql
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/plugins/test

mysql2:
runs-on: ubuntu-latest
services:
mysql:
image: mariadb:10.4
env:
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
MYSQL_DATABASE: 'db'
ports:
- 3306:3306
env:
PLUGINS: mysql2
SERVICES: mysql2
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/plugins/test

net:
runs-on: ubuntu-latest
env:
Expand Down
12 changes: 12 additions & 0 deletions packages/dd-trace/test/plugins/externals.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,18 @@
"versions": [">=3"]
}
],
"body-parser": [
{
"name": "express",
"versions": ["^4"]
}
],
"cookie-parser": [
{
"name": "express",
"versions": ["^4"]
}
],
"cypress": [
{
"name": "cypress",
Expand Down

0 comments on commit fcecd86

Please sign in to comment.