Skip to content

Commit 3ee59b6

Browse files
committed
add lint
1 parent 6640eab commit 3ee59b6

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

.github/workflows/lint.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Lint
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
lint:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
17+
- name: Setup Deno
18+
uses: denoland/setup-deno@v2
19+
with:
20+
deno-version: v2.x
21+
22+
- name: Run linter
23+
run: deno task lint

deno.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"tasks": {
3+
"lint": "deno fmt --check && deno lint",
34
"build": {
45
"description": "Build contracts from the contracts directory and output bytecode and abi in the codegen directory",
56
"command": "deno run --env-file --allow-all tools/build.ts"

0 commit comments

Comments
 (0)