Skip to content

Commit

Permalink
ci: add lint job (#463)
Browse files Browse the repository at this point in the history
  • Loading branch information
uki00a authored Nov 9, 2024
1 parent 76a775c commit 42c148d
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,6 @@ jobs:
deno task make_mod
git diff --exit-code
deno check mod.ts
- name: Run linters
run: |
deno fmt --check
deno lint
deno task check:deno-json
- name: Set up Redis ${{ matrix.redis }}
uses: shogo82148/actions-setup-redis@v1
with:
Expand All @@ -63,6 +58,23 @@ jobs:
deno task coverage
- uses: k1LoW/octocov-action@v0

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Get Deno version
run: |
echo "DENO_VERSION=$(cat .denov)" >> $GITHUB_ENV
- name: Set up Deno ${{ env.DENO_VERSION }}
uses: denoland/setup-deno@main
with:
deno-version: ${{ env.DENO_VERSION }}
- name: Run linters
run: |
deno fmt --check
deno lint
deno task check:deno-json
benchmark:
runs-on: ubuntu-latest
strategy:
Expand Down

0 comments on commit 42c148d

Please sign in to comment.