Skip to content

Commit

Permalink
Updated utils.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
kdivya153 committed Oct 8, 2024
1 parent ca5ad74 commit 15132d8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/run-standalone-mfos-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

# set the branch if the workflow is triggered from external
# set the branch if the workflow is triggered from external
- name: Set PR Branch based on the trigger
id: set-pr-branch
run: |
Expand Down Expand Up @@ -47,4 +47,4 @@ jobs:

- name: Get results from report.json
run: |
./.github/workflows/util.sh getResults
./.github/workflows/utils.sh getResults
9 changes: 8 additions & 1 deletion .github/workflows/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ function runTests(){
git clone --branch ${PR_BRANCH} https://github.com/rdkcentral/firebolt-apis.git
echo "cd to firebolt-apis repo and compile firebolt-open-rpc.json"
cd firebolt-apis
if [ "$EVENT_NAME" == "workflow_dispatch" ]; then
# If OPENRPC_PR_BRANCH is set and is not 'next'
if [ -n "$OPENRPC_PR_BRANCH" ] && [ "$OPENRPC_PR_BRANCH" != "next" ]; then
echo "Updating OpenRPC dependency to branch: $OPENRPC_PR_BRANCH"
jq ".dependencies[\"@firebolt-js/openrpc\"] = \"file:../firebolt-openrpc#$OPENRPC_PR_BRANCH\"" package.json > package.json.tmp && mv package.json.tmp package.json
fi
fi
npm i
npm run compile
npm run dist
Expand Down Expand Up @@ -77,7 +84,7 @@ function runTests(){
const fs = require("fs");
(async () => {
const browser = await puppeteer.launch({ headless: true, args: ["--no-sandbox", "--disable-gpu"] });
const page = await browser.newPage();
const page = await browser.newPage();
// Enable console logging
page.on("console", (msg) => {
Expand Down

0 comments on commit 15132d8

Please sign in to comment.