From 3cf18ee48eca8b97f6e100fdb411042283cc1a12 Mon Sep 17 00:00:00 2001 From: ITOH <72305210+itohatweb@users.noreply.github.com> Date: Fri, 9 Apr 2021 22:14:15 +0100 Subject: [PATCH] Create coverage.yml --- .github/workflows/coverage.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/coverage.yml diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml new file mode 100644 index 000000000..67974d512 --- /dev/null +++ b/.github/workflows/coverage.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: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: denolib/setup-deno@v2 + with: + deno-version: v1.8 + - name: Create coverage files + run: deno test --unstable --coverage=coverage # create coverage files + - name: Create coverage report + run: deno --unstable coverage ./coverage --lcov > coverage.lcov # create coverage report + - name: Collect coverage + uses: codecov/codecov-action@v1.0.10 # upload the report on Codecov + with: + file: ./coverage.lcov