This commit is contained in:
ITOH
2021-04-15 19:30:09 +02:00
parent 0ec3539cfe
commit 62c563fb4e
+2 -2
View File
@@ -18,10 +18,10 @@ jobs:
run: deno cache --no-check mod.ts
- name: Run test script for maintainers
if: ${{ github.actor == 'ayntee' || github.actor == 'Skillz4Killz' || github.actor == 'itohatweb' }}
run: deno test --unstable --coverage=./coverage -A --no-check tests/mod.ts
run: deno test --unstable --coverage=coverage -A --no-check tests/mod.ts
- name: Run test script if label added
if: ${{ github.event_name == 'pull_request' && github.event.action == 'labeled' && github.event.label.name == 'run-tests' }}
run: DISCORD_TOKEN=${{ secrets.DISCORD_TOKEN }} deno test --unstable --coverage=coverage -A --no-check tests/mod.ts
run: DISCORD_TOKEN=${{ secrets.DISCORD_TOKEN }} deno test --unstable --coverage=coverage --allow-net --no-check tests/mod.ts
- name: Create coverage report
run: deno --unstable coverage ./coverage --lcov > coverage.lcov
- name: Collect and upload the coverage report