Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@
# CI
/.github/actions/dd-sts-app-key/action.yml @Datadog/lang-platform-js
/.github/actions/dd-sts-api-key/action.yml @Datadog/lang-platform-js
/.github/actions/push_to_test_optimization/ @DataDog/ci-app-libraries
/.github/chainguard @DataDog/sdlc-security
/.github/workflows/apm-capabilities.yml @DataDog/apm-sdk-capabilities-js
/.github/workflows/apm-integrations.yml @DataDog/apm-idm-js
Expand Down
21 changes: 18 additions & 3 deletions .github/actions/push_to_test_optimization/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,22 @@ runs:
# > from a forked repository, and are also subject to these restrictions.
#
# Which means they do not have access to secrets.
uses: DataDog/junit-upload-github-action@ce82dc1f14a32888a057bfeeb47adfd0fd96e555 # v3.1.0
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
with:
api_key: ${{ inputs.dd_api_key }}
service: dd-trace-js-tests
path: ${{ github.action_path }}/node_modules
key: push-to-test-optimization-${{ hashFiles('.github/actions/push_to_test_optimization/package.json') }}
- if: github.actor != 'dependabot[bot]'
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version: '20'
- if: github.actor != 'dependabot[bot]'
shell: bash
run: |
yarn install --no-lockfile
echo "$(pwd)/node_modules/.bin" >> $GITHUB_PATH
working-directory: ${{ github.action_path }}
- if: github.actor != 'dependabot[bot]'
shell: bash
run: datadog-ci junit upload --service dd-trace-js-tests .
env:
DD_API_KEY: ${{ inputs.dd_api_key }}
8 changes: 8 additions & 0 deletions .github/actions/push_to_test_optimization/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "push-to-test-optimization",
"version": "1.0.0",
"private": true,
"dependencies": {
"@datadog/datadog-ci": "5.15.0"
}
}
1 change: 1 addition & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ updates:
directories:
- "/"
- "/docs"
- "/.github/actions/push_to_test_optimization"
schedule:
interval: "weekly"
open-pull-requests-limit: 100
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,10 @@ jobs:
- uses: ./.github/actions/node/active-lts
- uses: ./.github/actions/install
- run: yarn test:integration:bun
- uses: DataDog/junit-upload-github-action@ce82dc1f14a32888a057bfeeb47adfd0fd96e555 # v3.1.0
if: always() && github.actor != 'dependabot[bot]'
- uses: ./.github/actions/push_to_test_optimization
if: always()
with:
api_key: ${{ steps.dd-sts.outputs.api_key }}
service: dd-trace-js-tests
dd_api_key: ${{ steps.dd-sts.outputs.api_key }}

core:
runs-on: ubuntu-latest
Expand Down
Loading