ci: cache template code (#2126)

* ci: cache template code

* f

* f

* f

* f
This commit is contained in:
ITOH
2022-03-24 15:02:01 +01:00
committed by GitHub
parent 75eb35df6e
commit 4ad02d0a20
2 changed files with 7 additions and 0 deletions

View File

@@ -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

View File

@@ -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