Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

system-tests : Use reusable workflow to get scenario/weblog list #4691

Merged
merged 1 commit into from
Sep 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 8 additions & 17 deletions .github/workflows/system-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,30 +27,21 @@ jobs:
path: ./binaries/**/*

get-essential-scenarios:
runs-on: ubuntu-latest
outputs:
scenario: ${{ steps.parse-yml.outputs.scenario }}
steps:
- name: Checkout system tests
uses: actions/checkout@v4
with:
repository: 'DataDog/system-tests'
- name: Get Essential Scenarios
id: parse-yml
run: yq -o tsv .TRACER_ESSENTIAL_SCENARIOS ./scenario_groups.yml | xargs node -p "x=process.argv;x.shift();x.push('CROSSED_TRACING_LIBRARIES');'scenario='+JSON.stringify(x)" >> $GITHUB_OUTPUT

name: Get parameters
uses: DataDog/system-tests/.github/workflows/compute-workflow-parameters.yml@main
with:
library: nodejs
scenarios: CROSSED_TRACING_LIBRARIES
scenarios_groups: essentials

system-tests:
runs-on: ${{ contains(fromJSON('["CROSSED_TRACING_LIBRARIES", "INTEGRATIONS"]'), matrix.scenario) && 'ubuntu-latest-16-cores' || 'ubuntu-latest' }}
needs:
- get-essential-scenarios
strategy:
matrix:
weblog-variant:
- express4
- express4-typescript
- nextjs
scenario: ${{fromJson(needs.get-essential-scenarios.outputs.scenario)}}
weblog-variant: ${{fromJson(needs.get-essential-scenarios.outputs.endtoend_weblogs)}}
scenario: ${{fromJson(needs.get-essential-scenarios.outputs.endtoend_scenarios)}}

env:
TEST_LIBRARY: nodejs
Expand Down
Loading