Skip to content

Commit

Permalink
feat: CI add deno formatting (#1172)
Browse files Browse the repository at this point in the history
* Add deno formatting in CI

* Adds step to install unzip needed by deno github action

* Run deno formatting

* Rename deno formatting job

* Install zip

* Remove zip install

---------

Co-authored-by: greged93 <[email protected]>
  • Loading branch information
edisontim and greged93 authored Jun 23, 2024
1 parent 3ed7277 commit ef50d2f
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 1 deletion.
20 changes: 20 additions & 0 deletions .github/workflows/indexer_formatting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Format indexer

on:
workflow_call:

jobs:
deno-formatting:
runs-on: ubuntu-latest
timeout-minutes: 5

steps:
- uses: actions/checkout@v4
with:
sparse-checkout: indexer
- uses: denoland/setup-deno@v1
with:
deno-version: vx.x.x
- name: Run formatting
run: deno fmt --check indexer/
4 changes: 4 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,7 @@ jobs:
tests:
name: Rust tests
uses: ./.github/workflows/test.yml

indexer_formatting:
name: Deno formatting
uses: ./.github/workflows/indexer_formatting.yml
4 changes: 4 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,7 @@ jobs:
spell_check:
name: Spell check
uses: ./.github/workflows/spell_check.yml

indexer_formatting:
name: Deno formatting
uses: ./.github/workflows/indexer_formatting.yml
2 changes: 1 addition & 1 deletion indexer/src/deps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ export {
bigIntToHex,
bytesToBigInt,
bytesToHex,
bytesToInt,
concatBytes,
generateAddress,
hexToBytes,
intToHex,
stripHexPrefix,
bytesToInt,
} from "https://esm.sh/@ethereumjs/[email protected]";
export type { PrefixedHexString } from "https://esm.sh/@ethereumjs/[email protected]";

Expand Down

0 comments on commit ef50d2f

Please sign in to comment.