From 22b48342a23fb8c2dcdb01be94f94b2b1a5eb398 Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Thu, 4 Mar 2021 00:42:31 +0100 Subject: [PATCH] build: add ci (#1) --- .github/workflows/ci.yml | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..535a3c3 --- /dev/null +++ b/.github/workflows/ci.yml @@ -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