Skip to content

Commit

Permalink
changing plugin yml with matrices
Browse files Browse the repository at this point in the history
  • Loading branch information
crysmags committed Oct 22, 2024
1 parent 493ff18 commit e4fa8ab
Show file tree
Hide file tree
Showing 5 changed files with 122 additions and 48 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/outdated-integrations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: Outdated Integrations

on:
schedule:
# Yes, this runs a _lot_. We don't want to be out of date for very long.
- cron: '37 12,16,22 * * *'
# This, will run every weekday at 2pm UTC
- cron: '0 14 * * 1,2,3,4,5'

jobs:
outdated-integrations:
Expand Down
67 changes: 44 additions & 23 deletions .github/workflows/plugins.yml
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,10 @@ jobs:
- uses: ./.github/actions/plugins/test-and-upstream

aws-sdk:
needs:
- versions
strategy:
matrix:
node-version: ['18', 'latest']
range: ['2.1691.0']
matrix: ${{fromJson(needs.versions.outputs.matrices).matrices.aws-sdk}}
runs-on: ubuntu-latest
services:
localstack:
Expand Down Expand Up @@ -217,6 +217,7 @@ jobs:
PLUGINS: aws-sdk
SERVICES: localstack localstack-legacy
DD_DATA_STREAMS_ENABLED: true
PACKAGE_VERSION_RANGE: ${{ matrix.range }}
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/testagent/start
Expand Down Expand Up @@ -247,31 +248,36 @@ jobs:
- uses: ./.github/actions/plugins/test

bluebird:
needs:
- versions
strategy:
matrix:
range: ['3.7.2']
matrix: ${{fromJson(needs.versions.outputs.matrices).matrices.bluebird}}
runs-on: ubuntu-latest
env:
PLUGINS: bluebird
PACKAGE_VERSION_RANGE: ${{ matrix.range }}
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/plugins/test

bunyan:
needs:
- versions
strategy:
matrix:
range: ['1.8.15']
matrix: ${{fromJson(needs.versions.outputs.matrices).matrices.bunyan}}
runs-on: ubuntu-latest
env:
PLUGINS: bunyan
PACKAGE_VERSION_RANGE: ${{ matrix.range }}
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/plugins/test-and-upstream

cassandra:
needs:
- versions
strategy:
matrix:
range: ['>=3.0.0 <=4.7.2']
matrix: ${{fromJson(needs.versions.outputs.matrices).matrices.cassandra}}
runs-on: ubuntu-latest
services:
cassandra:
Expand All @@ -281,6 +287,7 @@ jobs:
env:
PLUGINS: cassandra-driver
SERVICES: cassandra
PACKAGE_VERSION_RANGE: ${{ matrix.range }}
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/plugins/test
Expand Down Expand Up @@ -330,35 +337,41 @@ jobs:
- uses: codecov/codecov-action@v3

connect:
needs:
- versions
strategy:
matrix:
range: ['3.7.0']
matrix: ${{fromJson(needs.versions.outputs.matrices).matrices.connect}}
runs-on: ubuntu-latest
env:
PLUGINS: connect
PACKAGE_VERSION_RANGE: ${{ matrix.range }}
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/plugins/test-and-upstream

cucumber:
needs:
- versions
strategy:
matrix:
range: ['11.0.1']
matrix: ${{fromJson(needs.versions.outputs.matrices).matrices.cucumber}}
runs-on: ubuntu-latest
env:
PLUGINS: cucumber
PACKAGE_VERSION_RANGE: ${{ matrix.range }}
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/plugins/test

# TODO: fix performance issues and test more Node versions
cypress:
needs:
- versions
strategy:
matrix:
range: ['13.14.2']
matrix: ${{fromJson(needs.versions.outputs.matrices).matrices.cypress}}
runs-on: ubuntu-latest
env:
PLUGINS: cypress
PACKAGE_VERSION_RANGE: ${{ matrix.range }}
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/testagent/start
Expand Down Expand Up @@ -389,9 +402,10 @@ jobs:
- uses: codecov/codecov-action@v3

elasticsearch:
needs:
- versions
strategy:
matrix:
range: ['16.7.3']
matrix: ${{fromJson(needs.versions.outputs.matrices).matrices.elasticsearch}}
runs-on: ubuntu-latest
services:
elasticsearch:
Expand All @@ -403,6 +417,7 @@ jobs:
env:
PLUGINS: elasticsearch
SERVICES: elasticsearch
PACKAGE_VERSION_RANGE: ${{ matrix.range }}
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/testagent/start
Expand All @@ -415,23 +430,27 @@ jobs:
- uses: codecov/codecov-action@v3

express:
needs:
- versions
strategy:
matrix:
range: ['4.21.0']
matrix: ${{fromJson(needs.versions.outputs.matrices).matrices.express}}
runs-on: ubuntu-latest
env:
PLUGINS: express|body-parser|cookie-parser
PACKAGE_VERSION_RANGE: ${{ matrix.range }}
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/plugins/test

fastify:
needs:
- versions
strategy:
matrix:
range: ['4.28.1']
matrix: ${{fromJson(needs.versions.outputs.matrices).matrices.fastify}}
runs-on: ubuntu-latest
env:
PLUGINS: fastify
PACKAGE_VERSION_RANGE: ${{ matrix.range }}
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/plugins/test
Expand All @@ -445,12 +464,14 @@ jobs:
- uses: ./.github/actions/plugins/test

generic-pool:
needs:
- versions
strategy:
matrix:
range: ['3.9.0']
matrix: ${{fromJson(needs.versions.outputs.matrices).matrices.generic-pool}}
runs-on: ubuntu-latest
env:
PLUGINS: generic-pool
PACKAGE_VERSION_RANGE: ${{ matrix.range }}
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/plugins/test
Expand Down
Loading

0 comments on commit e4fa8ab

Please sign in to comment.