mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-04 09:50:07 +00:00
ci: cache template code (#2126)
* ci: cache template code * f * f * f * f
This commit is contained in:
4
.github/workflows/local_tests.yml
vendored
4
.github/workflows/local_tests.yml
vendored
@@ -9,6 +9,7 @@ on:
|
||||
- "rest/**"
|
||||
- "tests/**"
|
||||
- "transformers/**"
|
||||
- "template/**"
|
||||
- "types/**"
|
||||
- "util/**"
|
||||
- "gateway/**"
|
||||
@@ -20,6 +21,7 @@ on:
|
||||
- "rest/**"
|
||||
- "tests/**"
|
||||
- "transformers/**"
|
||||
- "template/**"
|
||||
- "types/**"
|
||||
- "util/**"
|
||||
- "gateway/**"
|
||||
@@ -37,5 +39,7 @@ jobs:
|
||||
deno-version: ${{ matrix.deno }}
|
||||
- name: Cache dependencies
|
||||
run: deno cache mod.ts
|
||||
- name: Cache Templates
|
||||
run: deno cache template/beginner/mod.ts template/bigbot/src/bot/mod.ts template/bigbot/src/gateway/mod.ts template/bigbot/src/rest/mod.ts template/minimal/mod.ts
|
||||
- name: Run Local tests that don't need Discord's API
|
||||
run: deno test -A tests/local.ts
|
||||
|
||||
3
.github/workflows/test.yml
vendored
3
.github/workflows/test.yml
vendored
@@ -9,6 +9,7 @@ on:
|
||||
- "rest/**"
|
||||
- "tests/**"
|
||||
- "transformers/**"
|
||||
- "template/**"
|
||||
- "types/**"
|
||||
- "util/**"
|
||||
- "ws/**"
|
||||
@@ -27,6 +28,8 @@ jobs:
|
||||
deno-version: ${{ matrix.deno }}
|
||||
- name: Cache dependencies
|
||||
run: deno cache mod.ts
|
||||
- name: Cache Templates
|
||||
run: deno cache template/beginner/mod.ts template/bigbot/src/bot/mod.ts template/bigbot/src/gateway/mod.ts template/bigbot/src/rest/mod.ts template/minimal/mod.ts
|
||||
- name: Run test script for maintainers
|
||||
if: ${{ github.actor == 'Skillz4Killz' || github.actor == 'itohatweb' }}
|
||||
run: deno test --unstable --coverage=coverage -A tests/mod.ts
|
||||
|
||||
Reference in New Issue
Block a user