Replace the old redis cache implementation #3834
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- v* | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
name: "Setup deno" | |
steps: | |
- uses: actions/checkout@v3 | |
- name: cache deno installation and deno.land dependencies | |
uses: actions/cache@v2 | |
with: | |
key: ${{ runner.os }}-deno-${{ hashFiles('**/*') }} | |
restore-keys: ${{ runner.os }}-deno- | |
path: | | |
/home/runner/.deno | |
/home/runner/.cache/deno/deps/https/deno.land | |
- uses: denoland/setup-deno@v1 | |
with: | |
deno-version: v1.x | |
- name: Build Deno Module | |
run: deno run -A --lock=deno.lock --lock-write --reload mod.ts | |
- name: fetch any uncached dependencies | |
run: | | |
deno cache --lock=deno.lock --lock-write --reload=file: ./mod.ts | |
- run: | | |
deno test --lock=deno.lock --lock-write -A . | |
- run: | | |
deno bench --lock=deno.lock --lock-write -A . | |
- name: check lint | |
continue-on-error: true | |
run: | | |
deno --unstable lint | |
- name: check formatting | |
continue-on-error: true | |
run: | | |
deno fmt --check |