move coverage to test.yml

This commit is contained in:
ITOH
2021-04-10 14:26:23 +01:00
committed by GitHub
parent 55d73d1937
commit 8b7c44b319
+8 -2
View File
@@ -18,9 +18,15 @@ jobs:
run: deno cache --no-check mod.ts
- name: Run test script for Devs
if: ${{ github.actor == 'Skillz4Killz' || github.actor == 'itohatweb' || github.actor == 'ayntee' }}
run: deno test -A --no-check tests/mod.ts
run: deno test --unstable --coverage=coverage -A --no-check tests/mod.ts
- name: Run test script for label
if: ${{ github.event_name == 'pull_request' && github.event.action == 'labeled' && github.event.label.name == 'run-tests' }}
run: deno test -A --no-check tests/mod.ts
run: deno test --unstable --coverage=coverage -A --no-check tests/mod.ts
- 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
env:
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}