diff --git a/.github/workflows/cloud-runner-ci-pipeline.yml b/.github/workflows/cloud-runner-ci-pipeline.yml index 2a38950d..8fea3348 100644 --- a/.github/workflows/cloud-runner-ci-pipeline.yml +++ b/.github/workflows/cloud-runner-ci-pipeline.yml @@ -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 diff --git a/dist/index.js b/dist/index.js index ce6c9848..bde8c763 100644 Binary files a/dist/index.js and b/dist/index.js differ diff --git a/dist/index.js.map b/dist/index.js.map index 061beebd..c86b6465 100644 Binary files a/dist/index.js.map and b/dist/index.js.map differ diff --git a/src/model/cloud-runner/tests/cloud-runner-async-workflow.test.ts b/src/model/cloud-runner/tests/cloud-runner-async-workflow.test.ts index dd5fe7d8..606bba68 100644 --- a/src/model/cloud-runner/tests/cloud-runner-async-workflow.test.ts +++ b/src/model/cloud-runner/tests/cloud-runner-async-workflow.test.ts @@ -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); } }); diff --git a/src/model/github.ts b/src/model/github.ts index 2f2cdf7e..a3b60e17 100644 --- a/src/model/github.ts +++ b/src/model/github.ts @@ -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;