Skip to content

Commit

Permalink
Add linting to the pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
FinlayDaG33k committed Sep 18, 2024
1 parent ddfa50d commit 473f8bf
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
15 changes: 14 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
uses: actions/checkout@v3
with:
submodules: true
- name: Set up Deno
- name: Set up Deno
uses: denoland/setup-deno@v1
with:
deno-version: "1.40.0"
Expand All @@ -31,3 +31,16 @@ jobs:
deno-version: "1.40.0"
- name: Run tests
run: deno test --allow-read
fmt:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v3
with:
submodules: true
- name: Set up Deno
uses: denoland/setup-deno@v1
with:
deno-version: "1.40.0"
- name: Run tests
run: deno fmt --check
10 changes: 9 additions & 1 deletion deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
{
"fmt": {
"useTabs": false,
"singleQuote": false,
"semiColons": true,
"indentWidth": 2,
"lineWidth": 120,
"exclude": [".github",".idea","docs"]
},
"lint": {
"exclude": ["docs"],
"exclude": [".github",".idea","docs"],
"rules": {
"exclude": ["no-inferrable-types"]
}
Expand Down

0 comments on commit 473f8bf

Please sign in to comment.