fix
parent
d79587f1be
commit
2badcf56c5
|
@ -176,7 +176,7 @@ jobs:
|
|||
- StandaloneLinux64 # Build a Linux 64-bit standalone.
|
||||
- WebGL # WebGL.
|
||||
- iOS # Build an iOS player.
|
||||
- Android # Build an Android .apk.
|
||||
# - Android # Build an Android .apk.
|
||||
steps:
|
||||
- name: Checkout (default)
|
||||
uses: actions/checkout@v4
|
||||
|
|
|
@ -6371,6 +6371,9 @@ class GitHub {
|
|||
core.info(`github workflow complete hook not found`);
|
||||
}
|
||||
}
|
||||
static async getCheckStatus() {
|
||||
return await GitHub.octokitDefaultToken.request(`GET /repos/{owner}/{repo}/check-runs/{check_run_id}`);
|
||||
}
|
||||
}
|
||||
GitHub.asyncChecksApiWorkflowName = `Async Checks API`;
|
||||
GitHub.githubInputEnabled = true;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -5,6 +5,8 @@ import { Cli } from '../../cli/cli';
|
|||
import CloudRunnerOptions from '../options/cloud-runner-options';
|
||||
import setups from './cloud-runner-suite.test';
|
||||
import { OptionValues } from 'commander';
|
||||
import GitHub from '../../github';
|
||||
import CloudRunnerLogger from '../services/core/cloud-runner-logger';
|
||||
|
||||
async function CreateParameters(overrides: OptionValues | undefined) {
|
||||
if (overrides) Cli.options = overrides;
|
||||
|
@ -29,6 +31,11 @@ describe('Cloud Runner Async Workflows', () => {
|
|||
|
||||
// Run the job
|
||||
await CloudRunner.run(buildParameter, baseImage.toString());
|
||||
const result = await GitHub.getCheckStatus();
|
||||
expect(result).toBe(`success`);
|
||||
|
||||
// log data
|
||||
CloudRunnerLogger.log(JSON.stringify(result.data, undefined, 4));
|
||||
}, 1_000_000_000);
|
||||
}
|
||||
});
|
||||
|
|
|
@ -213,6 +213,10 @@ class GitHub {
|
|||
core.info(`github workflow complete hook not found`);
|
||||
}
|
||||
}
|
||||
|
||||
public static async getCheckStatus() {
|
||||
return await GitHub.octokitDefaultToken.request(`GET /repos/{owner}/{repo}/check-runs/{check_run_id}`);
|
||||
}
|
||||
}
|
||||
|
||||
export default GitHub;
|
||||
|
|
Loading…
Reference in New Issue