Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
frostebite committed Feb 6, 2024
1 parent d79587f commit 2badcf5
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cloud-runner-ci-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
}
});
4 changes: 4 additions & 0 deletions src/model/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit 2badcf5

Please sign in to comment.