Handle skipped plugin tests

This commit is contained in:
Rodel Calasagsag 2023-09-01 11:35:37 +08:00
parent 23dce606c5
commit 0207bbff97
2 changed files with 21 additions and 2 deletions

View File

@ -127,10 +127,28 @@ module.exports = async ( { context, core, github } ) => {
return blocks;
};
const create_blockGroups_plugins = () => {
const blocks_pluginTestsNotRun = [
{
type: 'section',
text: {
type: 'mrkdwn',
text: ':warning: *Plugin tests were not run!*',
},
},
{
type: 'divider',
},
];
return PLUGINS_BLOCKS_PATH
? readContextBlocksFromJsonFiles( PLUGINS_BLOCKS_PATH )
: blocks_pluginTestsNotRun;
};
const blockGroup_header = await create_blockGroup_header();
const blockGroup_nightlySite = create_blockGroup_nightlySite();
const blockGroups_plugins =
readContextBlocksFromJsonFiles( PLUGINS_BLOCKS_PATH );
const blockGroups_plugins = create_blockGroups_plugins();
const blocks_all = [
...blockGroup_header,
...blockGroup_nightlySite,

View File

@ -357,6 +357,7 @@ jobs:
- uses: actions/checkout@v3
- name: Download Slack blocks from plugin tests
if: ! contains(fromJSON('["skipped", "cancelled"]'), needs.test-plugins.result)
id: download-plugin-blocks
uses: actions/download-artifact@v3
with: