Skip to content
This repository has been archived by the owner on Jun 9, 2024. It is now read-only.

Commit

Permalink
move to this cache
Browse files Browse the repository at this point in the history
  • Loading branch information
itsdevbear committed Oct 31, 2023
1 parent 4742e24 commit 4e21f6b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 32 deletions.
35 changes: 13 additions & 22 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,11 @@ jobs:
uses: actions/checkout@v3

- name: Setup Golang
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
check-latest: true
cache-dependency-path: "**/*.sum"

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
Expand Down Expand Up @@ -81,9 +83,11 @@ jobs:
uses: actions/checkout@v3

- name: Setup Golang
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
check-latest: true
cache-dependency-path: "**/*.sum"

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
Expand Down Expand Up @@ -122,24 +126,18 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Golang
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
check-latest: true
cache-dependency-path: "**/*.sum"

- name: Download image artifact
uses: actions/download-artifact@v2
with:
name: ${{ matrix.base-image }}
- name: Load image
run: docker load -i ${{ matrix.base-image }}.tar
- name: Cache Golang Deps
uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go
key: ${{ runner.os }}-golang-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-golang-
- name: Run `make test-hive`
run: make hive-setup test-hive
env:
Expand All @@ -158,24 +156,17 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Golang
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
check-latest: true
cache-dependency-path: "**/*.sum"
- name: Download image artifact
uses: actions/download-artifact@v2
with:
name: ${{ matrix.base-image }}
- name: Load image
run: docker load -i ${{ matrix.base-image }}.tar
- name: Cache Golang Deps
uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go
key: ${{ runner.os }}-golang-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-golang-
- name: Run ${{ matrix.namespace }}
run: make test-${{ matrix.namespace }}
env:
Expand Down
14 changes: 4 additions & 10 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,12 @@ jobs:
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
- name: Setup Golang
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Cache Golang Deps
uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go
key: ${{ runner.os }}-golang-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-golang-
check-latest: true
cache-dependency-path: "**/*.sum"

- name: Run ${{ matrix.args }}
run: |
make ${{ matrix.args }}
Expand Down

0 comments on commit 4e21f6b

Please sign in to comment.