Skip to content

Commit 0aa43ce

Browse files
authored
Merge pull request #110 from JetBrains/fadeeva/fix-daily-tests
Improve formatting for Slack notifications on test failures
2 parents 8d75a1e + 1a858c1 commit 0aa43ce

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

.github/workflows/daily-release-tests.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ on:
44
schedule:
55
- cron: '0 1 * * *'
66
workflow_dispatch:
7+
inputs:
8+
branch:
9+
description: 'Branch to test'
10+
required: false
11+
default: 'main'
12+
type: string
713

814
jobs:
915
integration-tests-latest:
@@ -16,6 +22,8 @@ jobs:
1622
steps:
1723
- name: Checkout repository
1824
uses: actions/checkout@v4
25+
with:
26+
ref: ${{ inputs.branch || github.ref }}
1927

2028
- name: Setup Bun
2129
uses: oven-sh/setup-bun@v2
@@ -90,8 +98,12 @@ jobs:
9098
"title": "Status",
9199
"value": "${{ steps.run-tests.outcome }}",
92100
"short": true
93-
}
94-
${{ env.FAILED_TESTS_SUMMARY != '' && format(', { "title": "Failed Tests", "value": "{0}", "short": false }', env.FAILED_TESTS_SUMMARY) || '' }}
101+
}${{ env.FAILED_TESTS_SUMMARY != '' && format(',
102+
{{
103+
"title": "Failed Tests",
104+
"value": "{0}",
105+
"short": false
106+
}}', env.FAILED_TESTS_SUMMARY) || '' }}
95107
]
96108
}
97109
]

0 commit comments

Comments
 (0)