Skip to content

Commit

Permalink
[CI] Use system-tests reusable workflow for PARAMETRIC scenario (#4438)
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeauchesne authored Jun 25, 2024
1 parent 62278c6 commit bc36d27
Showing 1 changed file with 21 additions and 28 deletions.
49 changes: 21 additions & 28 deletions .github/workflows/system-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,19 @@ on:
- cron: '00 04 * * 2-6'

jobs:
build-artifacts:
runs-on: ubuntu-latest
steps:
- name: Checkout dd-trace-js
uses: actions/checkout@v4
with:
path: dd-trace-js
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: system_tests_binaries
path: .

get-essential-scenarios:
runs-on: ubuntu-latest
outputs:
Expand Down Expand Up @@ -71,31 +84,11 @@ jobs:
path: artifact.tar.gz

parametric:
runs-on: ubuntu-latest
env:
TEST_LIBRARY: nodejs
steps:
- name: Checkout system tests
uses: actions/checkout@v4
with:
repository: 'DataDog/system-tests'
- uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Checkout dd-trace-js
uses: actions/checkout@v4
with:
path: 'binaries/dd-trace-js'
- name: Build
run: ./build.sh -i runner
- name: Run
run: ./run.sh PARAMETRIC
- name: Compress artifact
if: ${{ always() }}
run: tar -czvf artifact.tar.gz $(ls | grep logs)
- name: Upload artifact
uses: actions/upload-artifact@v3
if: ${{ always() }}
with:
name: logs_parametric
path: artifact.tar.gz
needs:
- build-artifacts
uses: DataDog/system-tests/.github/workflows/system-tests.yml@main
secrets: inherit
with:
scenarios: PARAMETRIC
library: nodejs
binaries_artifact: system_tests_binaries

0 comments on commit bc36d27

Please sign in to comment.