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: