Don't run tests against PRs

This commit is contained in:
Tyrrrz
2021-09-28 20:40:48 +03:00
parent acfe102e7f
commit b64dff1eab
5 changed files with 12 additions and 12 deletions

View File

@@ -21,6 +21,8 @@ jobs:
dotnet-version: 5.0.x
- name: Build & test
# Tests need access to secrets, so we can't run them against PRs because of limited trust
if: ${{ github.event_name != 'pull_request' }}
run: dotnet test --configuration Release --logger GitHubActions
env:
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}