test: remove weird workaround (#556)

This commit is contained in:
ayntee
2021-02-28 00:05:01 +04:00
committed by GitHub
parent 7a52f301b3
commit a72bf9bb2e
2 changed files with 2 additions and 5 deletions

View File

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

View File

@@ -36,7 +36,6 @@ import {
export const defaultTestOptions: Partial<Deno.TestDefinition> = {
sanitizeOps: false,
sanitizeResources: false,
ignore: Deno.env.get("TEST_TYPE") !== "api",
};
// Temporary data