From e6e6c99f624635eaf2ba54d2a23cc76ee508b935 Mon Sep 17 00:00:00 2001 From: v1rtl Date: Sat, 6 Mar 2021 18:07:08 +0300 Subject: [PATCH] add github actions & codecov --- .github/workflows/main.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..61bfd31 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,26 @@ +name: CI + +# Controls when the action will run. Triggers the workflow on push or pull request +# events but only for the master branch +on: + push: + branches: [master] + pull_request: + branches: [master] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: denolib/setup-deno@v2 + with: + deno-version: v1.8 + - name: Create tests + run: deno test --unstable --coverage=coverage + - name: Create coverage report + run: deno --unstable coverage ./coverage --lcov > coverage.lcov + - name: Collect coverage + uses: codecov/codecov-action@v1.0.10 + with: + file: ./coverage.lcov