Skip to content

Commit 3560cb1

Browse files
authored
Re-enable GitHub action cache steps (#6132) (#6133)
(cherry picked from commit 4175e96)
1 parent cda42c7 commit 3560cb1

File tree

2 files changed

+24
-25
lines changed

2 files changed

+24
-25
lines changed

.github/workflows/integration-jobs.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,18 @@ jobs:
3232
- uses: actions/setup-dotnet@v1
3333
with:
3434
dotnet-version: '6.0.101'
35-
# - uses: actions/cache@v2
36-
# with:
37-
# path: ~/.nuget/packages
38-
# key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
39-
# restore-keys: |
40-
# ${{ runner.os }}-nuget-
41-
# - uses: actions/cache@v2
42-
# with:
43-
# path: ~/.local/share/ElasticManaged/elasticsearch-${{ matrix.stack_version }}
44-
# key: ${{ runner.os }}-elastic-managed-${{ matrix.stack_version }}
45-
# restore-keys: |
46-
# ${{ runner.os }}-elastic-managed-
35+
- uses: actions/cache@v2
36+
with:
37+
path: ~/.nuget/packages
38+
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
39+
restore-keys: |
40+
${{ runner.os }}-nuget-
41+
- uses: actions/cache@v2
42+
with:
43+
path: ~/.local/share/ElasticManaged/elasticsearch-${{ matrix.stack_version }}
44+
key: ${{ runner.os }}-elastic-managed-${{ matrix.stack_version }}
45+
restore-keys: |
46+
${{ runner.os }}-elastic-managed-
4747
4848
- run: "./build.sh integrate ${{ matrix.stack_version }} readonly,writable random:test_only_one --report"
4949
name: ${{ matrix.stack_version }}

.github/workflows/test-jobs.yml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
name: Tests
22

3-
43
on:
54
pull_request:
65
paths-ignore:
@@ -25,12 +24,12 @@ jobs:
2524
- uses: actions/setup-dotnet@v1
2625
with:
2726
dotnet-version: '6.0.101'
28-
# - uses: actions/cache@v2
29-
# with:
30-
# path: ~/.nuget/packages
31-
# key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
32-
# restore-keys: |
33-
# ${{ runner.os }}-nuget-
27+
- uses: actions/cache@v2
28+
with:
29+
path: ~/.nuget/packages
30+
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
31+
restore-keys: |
32+
${{ runner.os }}-nuget-
3433
3534
- run: ./build.sh test --report
3635
name: Test
@@ -55,12 +54,12 @@ jobs:
5554
- uses: actions/setup-dotnet@v1
5655
with:
5756
dotnet-version: '6.0.101'
58-
# - uses: actions/cache@v2
59-
# with:
60-
# path: ~/.nuget/packages
61-
# key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
62-
# restore-keys: |
63-
# ${{ runner.os }}-nuget-
57+
- uses: actions/cache@v2
58+
with:
59+
path: ~/.nuget/packages
60+
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
61+
restore-keys: |
62+
${{ runner.os }}-nuget-
6463
6564
- run: ./build.sh canary --report
6665
name: Test

0 commit comments

Comments
 (0)