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
69 changes: 32 additions & 37 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -513,10 +513,18 @@ jobs:
if: needs.test.result == 'success' || needs.test.result == 'failure' ||
needs.e2e.result == 'success' || needs.e2e.result == 'failure'
run: |
mkdir -p reports/
if [ ! -d test-results/ ]; then
echo "No test-results/ directory; nothing to merge."
exit 0
fi
reports=$(find test-results/ -name \*.xml -type f -exec basename \{\} \; | sort | uniq)
if [ -z "$reports" ]; then
echo "No JUnit XML files found under test-results/; nothing to merge."
exit 0
fi
YARN_REGISTRY=
yarn global add junit-report-merger
reports=$(find test-results/ -name \*.xml -type f -exec basename \{\} \; | sort | uniq)
mkdir -p reports/
echo "$reports" | (while read name ; do
yarn exec -s jrm reports/${name} "test-results/**/${name}"
done)
Expand Down Expand Up @@ -606,44 +614,31 @@ jobs:

- name: SlackBot
if: always() && job.status != 'cancelled' && github.ref == 'refs/heads/latest'
env:
CI_GRID_GATE_CHANNEL: ${{ env.SLACK_CHANNEL }}
CHARTS_TEAM_CITY_CHANNEL: ${{ secrets.CHARTS_TEAM_CITY_CHANNEL }}
WEBSITE_STATUS_CHANNEL: ${{ secrets.WEBSITE_STATUS_CHANNEL }}
uses: ./external/ag-shared/github/actions/slack-ci-notification
with:
SLACK_BOT_OAUTH_TOKEN: ${{ secrets.SLACK_BOT_OAUTH_TOKEN }}
SLACK_DEBUG_CHANNEL: ${{ secrets.SLACK_DEBUG_CHANNEL }}
SLACK_GITHUB_MAPPING: ${{ secrets.SLACK_GITHUB_MAPPING }}
RUN_CONTEXT: >
NOTION_API_TOKEN: ${{ secrets.SLACK_USER_CONFIG_NOTION_API_TOKEN }}
NOTION_DATA_SOURCE_ID: ${{ secrets.SLACK_USER_CONFIG_NOTION_DATA_SOURCE_ID }}
AG_PROJECT: AgGrid
LAST_SUCCESSFUL_SHA: ${{ steps.find_latest_sha.outputs.sha }}
TEAM_CHANNEL: ${{ env.SLACK_CHANNEL }}
DEBUG_CHANNEL: ${{ secrets.SLACK_DEBUG_CHANNEL }}
WEBSITE_STATUS_CHANNEL: ${{ secrets.WEBSITE_STATUS_CHANNEL }}
REPORT_URL: ${{ steps.testReport.outputs.url_html }}
CHANGED_STATE: ${{ steps.lastJobStatus.outputs.changedState }}
DEPLOY_TO_STAGING: ${{ needs.docs.outputs.docs_deployed == 'success' }}
JOB_STATUSES: >
{
"workflow": "${{ github.workflow }}",
"ref": "${{ github.ref }}",
"currentSha": "${{ github.sha }}",
"lastSuccessfulSha": "${{ steps.find_latest_sha.outputs.sha }}",
"runId": "${{ github.run_id }}",
"project": "AgGrid",
"reportUrl": "${{ steps.testReport.outputs.url_html }}",
"deployToStaging": ${{ needs.docs.outputs.docs_deployed == 'success' }},
"changedState": ${{ steps.lastJobStatus.outputs.changedState == 'true' }},
"jobStatuses":
{
"Format": "${{ needs.lint.outputs.format }}",
"Lint": "${{ needs.lint.outputs.lint }}",
"Build": "${{ needs.build.outputs.build }}",
"Test": "${{ needs.test.result }}",
"e2e": "${{ needs.e2e.result }}",
"FW_Pkg": "${{ needs.fw_pkg_test.result }}",
"Docs": "${{ needs.docs.result }}",
"SonarCommunity": "${{ needs.sonar_community.result }}",
"SonarEnterprise": "${{ needs.sonar_enterprise.result }}"
}
"Format": "${{ needs.lint.outputs.format }}",
"Lint": "${{ needs.lint.outputs.lint }}",
"Build": "${{ needs.build.outputs.build }}",
"Test": "${{ needs.test.result }}",
"e2e": "${{ needs.e2e.result }}",
"FW_Pkg": "${{ needs.fw_pkg_test.result }}",
"Docs": "${{ needs.docs.result }}",
"SonarCommunity": "${{ needs.sonar_community.result }}",
"SonarEnterprise": "${{ needs.sonar_enterprise.result }}"
}
run: |
npx ts-node ./scripts/agBotSlackMessage.ts --auth-token "$SLACK_BOT_OAUTH_TOKEN" \
--grid-channel "$CI_GRID_GATE_CHANNEL" \
--charts-channel "$CHARTS_TEAM_CITY_CHANNEL" \
--website-status-channel "$WEBSITE_STATUS_CHANNEL" \
--debug-channel "$SLACK_DEBUG_CHANNEL" \
--run-context "$RUN_CONTEXT"

- name: Fail job if workflow failed
if: success() && steps.lastJobStatus.outputs.workflowStatus == 'failure'
Expand Down
1 change: 1 addition & 0 deletions documentation/ag-grid-docs/eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export default [
'**/systemjs.config.js',
'**/systemjs.config.dev.js',
'.playwright-network-cache/',
'**/*.ics',
],
},
{
Expand Down
Loading
Loading