mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-01 16:30:08 +00:00
ci: separate local tests
This commit is contained in:
6
.github/workflows/test.yml
vendored
6
.github/workflows/test.yml
vendored
@@ -13,8 +13,10 @@ jobs:
|
||||
deno-version: ${{ matrix.deno }}
|
||||
- name: Cache dependencies
|
||||
run: deno cache mod.ts
|
||||
- name: Run test script
|
||||
- name: Run local tests
|
||||
run: TEST_TYPE=local deno test
|
||||
- name: Run API tests
|
||||
if: github.ref == 'refs/heads/master'
|
||||
run: deno test --allow-net --allow-env
|
||||
run: TEST_TYPE=api deno test --allow-net --allow-env
|
||||
env:
|
||||
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}
|
||||
|
||||
Reference in New Issue
Block a user