This commit is contained in:
Frostebite 2024-02-06 01:30:59 +00:00
parent d79587f1be
commit 2badcf56c5
5 changed files with 12 additions and 1 deletions

View File

@ -176,7 +176,7 @@ jobs:
- StandaloneLinux64 # Build a Linux 64-bit standalone. - StandaloneLinux64 # Build a Linux 64-bit standalone.
- WebGL # WebGL. - WebGL # WebGL.
- iOS # Build an iOS player. - iOS # Build an iOS player.
- Android # Build an Android .apk. # - Android # Build an Android .apk.
steps: steps:
- name: Checkout (default) - name: Checkout (default)
uses: actions/checkout@v4 uses: actions/checkout@v4

BIN
dist/index.js generated vendored

Binary file not shown.

BIN
dist/index.js.map generated vendored

Binary file not shown.

View File

@ -5,6 +5,8 @@ import { Cli } from '../../cli/cli';
import CloudRunnerOptions from '../options/cloud-runner-options'; import CloudRunnerOptions from '../options/cloud-runner-options';
import setups from './cloud-runner-suite.test'; import setups from './cloud-runner-suite.test';
import { OptionValues } from 'commander'; import { OptionValues } from 'commander';
import GitHub from '../../github';
import CloudRunnerLogger from '../services/core/cloud-runner-logger';
async function CreateParameters(overrides: OptionValues | undefined) { async function CreateParameters(overrides: OptionValues | undefined) {
if (overrides) Cli.options = overrides; if (overrides) Cli.options = overrides;
@ -29,6 +31,11 @@ describe('Cloud Runner Async Workflows', () => {
// Run the job // Run the job
await CloudRunner.run(buildParameter, baseImage.toString()); 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); }, 1_000_000_000);
} }
}); });

View File

@ -213,6 +213,10 @@ class GitHub {
core.info(`github workflow complete hook not found`); 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; export default GitHub;