Skip to content

Commit

Permalink
Fix build (#40)
Browse files Browse the repository at this point in the history
* fix build issue

* add workflow and fix prettier
  • Loading branch information
apoorvsadana authored Oct 10, 2024
1 parent df1365d commit 07e3636
Show file tree
Hide file tree
Showing 4 changed files with 2,949 additions and 2 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Yarn Install and Build

on:
workflow_call:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: "18" # Specify the Node.js version you want to use

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT

- name: Cache yarn dependencies
uses: actions/cache@v3
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install Dependencies
run: yarn install --frozen-lockfile

- name: Build
run: yarn run build
4 changes: 4 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,7 @@ jobs:
spellcheck:
name: Run spellcheck
uses: ./.github/workflows/spellcheck.yml

build:
name: Build
uses: ./.github/workflows/build.yml
6 changes: 4 additions & 2 deletions pages/interacting/methods.en.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ Each method has its own specific features and schema. Detailed information on ea
- **Result**: The resulting block information with transaction hashes
- **Errors**:
- `BLOCK_NOT_FOUND`: If the specified block does not exist
</details>

</details>

### `starknet_getBlockWithReceipts`

Expand All @@ -136,7 +137,8 @@ Each method has its own specific features and schema. Detailed information on ea
- **Result**: The resulting block information with transaction hashes
- **Errors**:
- `BLOCK_NOT_FOUND`: If the specified block does not exist
</details>

</details>

### `starknet_getBlockWithTxs`

Expand Down
Loading

0 comments on commit 07e3636

Please sign in to comment.