From 580946a3562f7fb80e789fc0797cbb5aa0f6ccca Mon Sep 17 00:00:00 2001 From: uki00a Date: Sat, 9 Nov 2024 21:00:58 +0900 Subject: [PATCH] ci: add `lint` job --- .github/workflows/build.yml | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9f693526..3a072634 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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: @@ -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: