mirror of
https://github.com/discordeno/discordeno.git
synced 2026-05-30 15:30:07 +00:00
test using a comment
This commit is contained in:
9
.github/workflows/pr_tests.yml
vendored
9
.github/workflows/pr_tests.yml
vendored
@@ -1,7 +1,5 @@
|
||||
name: Test Contributor Pull Requests
|
||||
on:
|
||||
pull_request:
|
||||
types: [labeled, opened]
|
||||
on: issue_comment
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -16,8 +14,9 @@ jobs:
|
||||
- name: Cache dependencies
|
||||
run: deno cache 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 tests/mod.ts
|
||||
if: ${{ github.event.issue.pull_request }}
|
||||
if: github.actor == 'Skillz4Killz' || github.actor == 'itohatweb'
|
||||
run: DISCORD_TOKEN=${{ env.DISCORD_TOKEN }} deno test --unstable --coverage=coverage -A tests/mod.ts
|
||||
env:
|
||||
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}
|
||||
- name: Create coverage report
|
||||
|
||||
Reference in New Issue
Block a user