Skip to content

Commit

Permalink
Fix workflow for Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
KuphJr committed Sep 8, 2023
1 parent 833b4f4 commit 1c32c42
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
registry-url: 'https://registry.npmjs.org'

- name: Run npm ci
run: npm ci
run: npm ci --no-optional

- name: Setup project
run: npm run build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/prettier.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
node-version: 18

- name: Install dependencies
run: npm ci
run: npm ci --no-optional

- name: Run Prettier check
run: npx prettier --check .
2 changes: 1 addition & 1 deletion .github/workflows/test-converage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
node-version: 18

- name: Install dependencies
run: npm ci
run: npm ci --no-optional

- name: Setup Deno
uses: denolib/setup-deno@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
node-version: 18

- name: Install dependencies
run: npm ci
run: npm ci --no-optional

- name: Setup Deno
uses: denolib/setup-deno@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
node-version: 18

- name: Install dependencies
run: npm ci
run: npm ci --no-optional

- name: Setup Deno
uses: denolib/setup-deno@v2
Expand Down
4 changes: 2 additions & 2 deletions src/localFunctionsTestnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ const handleOracleRequest = async (
admin: Wallet,
secrets: Record<string, string> = {},
) => {
const requestData = await constructRequestDataObject(requestEventData.data)
const requestData = await buildRequestDataObject(requestEventData.data)
const response = await simulateDONExecution(requestData, secrets)

const errorHexstring = response.errorString
Expand Down Expand Up @@ -273,7 +273,7 @@ const encodeReport = (
return encodedReport
}

const constructRequestDataObject = async (requestData: string): Promise<FunctionsRequestParams> => {
const buildRequestDataObject = async (requestData: string): Promise<FunctionsRequestParams> => {
const decodedRequestData = await cbor.decodeAll(Buffer.from(requestData.slice(2), 'hex'))

const requestDataObject = {} as FunctionsRequestParams
Expand Down

0 comments on commit 1c32c42

Please sign in to comment.