-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Moritz Wiesinger <[email protected]>
- Loading branch information
Showing
2 changed files
with
23 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,15 +24,29 @@ jobs: | |
cache-dependency-path: internal/tools/go.sum | ||
|
||
- name: Cache tools | ||
id: cache-tools | ||
uses: actions/cache@v4 | ||
with: | ||
path: .tools | ||
key: ci-tools-${{ runner.os }}-${{ hashFiles('internal/tools/go.sum') }} | ||
key: e2e-tools-${{ runner.os }}-${{ hashFiles('internal/tools/go.sum') }} | ||
|
||
- name: Touch tools | ||
- name: Install tools | ||
if: steps.cache-tools.outputs.cache-hit != 'true' | ||
run: | | ||
mkdir -p .tools | ||
touch .tools/* | ||
make install-tools | ||
- name: Generate source files | ||
run: make generate | ||
|
||
- name: Cache Go modules | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
~/.cache/go-build | ||
~/go/pkg/mod | ||
key: e2e-mods-${{ runner.os }}-${{ hashFiles('build/go.sum') }} | ||
|
||
- name: Build collector artifact | ||
shell: bash | ||
|
@@ -96,15 +110,18 @@ jobs: | |
cache-dependency-path: internal/tools/go.sum | ||
|
||
- name: Cache tools | ||
id: cache-tools | ||
uses: actions/cache@v4 | ||
with: | ||
path: .tools | ||
key: ci-tools-${{ runner.os }}-${{ hashFiles('internal/tools/go.sum') }} | ||
key: e2e-tools-${{ runner.os }}-${{ hashFiles('internal/tools/go.sum') }} | ||
|
||
- name: Touch tools | ||
- name: Install tools | ||
if: steps.cache-tools.outputs.cache-hit != 'true' | ||
run: | | ||
mkdir -p .tools | ||
touch .tools/* | ||
make install-tools | ||
- name: Create kind cluster | ||
uses: helm/[email protected] | ||
|
@@ -123,10 +140,6 @@ jobs: | |
run: | | ||
docker load --input /tmp/dynatrace-otel-collector.tar | ||
- name: Kind load image | ||
run: | | ||
kind load docker-image dynatrace-otel-collector:e2e-test --name kind | ||
- name: Load Image into Kind | ||
shell: bash | ||
run: | | ||
|
@@ -151,17 +164,6 @@ jobs: | |
check-latest: true | ||
cache-dependency-path: internal/tools/go.sum | ||
|
||
- name: Cache tools | ||
uses: actions/cache@v4 | ||
with: | ||
path: .tools | ||
key: ci-tools-${{ runner.os }}-${{ hashFiles('internal/tools/go.sum') }} | ||
|
||
- name: Touch tools | ||
run: | | ||
mkdir -p .tools | ||
touch .tools/* | ||
- name: Download artifact | ||
uses: actions/download-artifact@v4 | ||
with: | ||
|