Skip to content

CI

CI #172

Workflow file for this run

name: CI
on:
push:
pull_request:
schedule:
- cron: "0 0 * * 0"
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
deno-version:
- 1.25.2
services:
redis:
image: redis
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 6379:6379
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Use Deno ${{ matrix.deno-version }}
uses: denolib/setup-deno@v2
with:
deno-version: ${{ matrix.deno-version }}
- name: Check format
run: deno fmt --check
- name: Lint source files
run: deno lint
- name: Run tests
run: deno test --allow-net