CI #170
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: | |
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 |