ci(test): add --allow-env flag

This commit is contained in:
ayntee
2021-01-27 11:54:15 +04:00
parent 07bf620ffa
commit 9a731f0a1d

View File

@@ -14,9 +14,9 @@ jobs:
- name: Cache dependencies
run: deno cache mod.ts
- name: Run local tests
run: TEST_TYPE=local deno test
run: TEST_TYPE=local deno test --allow-env
- name: Run API tests
if: github.ref == 'refs/heads/master'
run: TEST_TYPE=api deno test --allow-net --allow-env
run: TEST_TYPE=api deno test --allow-net --allow-env --allow-env
env:
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}