Skip to content

Commit

Permalink
build: add ci (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacasonato authored Mar 3, 2021
1 parent 47a68f7 commit 22b4834
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: ci

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
test:
runs-on: ubuntu-latest

services:
redis:
image: redis
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 6379:6379

steps:
- name: Setup repo
uses: actions/checkout@v2

- name: Setup Deno
uses: denolib/setup-deno@v2
with:
deno-version: "v1.x"

- name: Format
run: deno fmt --check

- name: Lint
run: deno lint --unstable

- name: Run Tests
run: deno test --allow-net

0 comments on commit 22b4834

Please sign in to comment.