Skip to content

Commit 9a5b5a1

Browse files
committed
add cache to CI
1 parent b166bb0 commit 9a5b5a1

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,13 @@ jobs:
346346
- name: Setup Terraform
347347
uses: ./.github/actions/setup-tf
348348

349+
- name: Cache
350+
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 #v4.2.3
351+
with:
352+
# This path is defined in testutil/cache.go
353+
path: ~/.cache/coderv2-tests
354+
key: test-go-${{ runner.os }}-coderv2-tests
355+
349356
- name: Test with Mock Database
350357
id: test
351358
shell: bash
@@ -467,6 +474,13 @@ jobs:
467474
if: runner.os == 'Windows'
468475
uses: ./.github/actions/setup-imdisk
469476

477+
- name: Cache
478+
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 #v4.2.3
479+
with:
480+
# This path is defined in testutil/cache.go
481+
path: ~/.cache/coderv2-tests
482+
key: test-go-pg-${{ runner.os }}-coderv2-tests
483+
470484
- name: Test with PostgreSQL Database
471485
env:
472486
POSTGRES_VERSION: "13"
@@ -519,6 +533,13 @@ jobs:
519533
- name: Setup Terraform
520534
uses: ./.github/actions/setup-tf
521535

536+
- name: Cache
537+
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 #v4.2.3
538+
with:
539+
# This path is defined in testutil/cache.go
540+
path: ~/.cache/coderv2-tests
541+
key: test-go-pg-16-${{ runner.os }}-coderv2-tests
542+
522543
- name: Test with PostgreSQL Database
523544
env:
524545
POSTGRES_VERSION: "16"

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy