diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index abb5f0b6f6b5..28af2144275d 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -79,6 +79,12 @@ jobs: ~/go/bin ~/go/pkg/mod key: go-cache-${{ runner.os }}-${{ hashFiles('**/go.sum') }} + - name: Install dependencies + if: steps.go-cache.outputs.cache-hit != 'true' + run: make -j2 gomoddownload + - name: Install Tools + if: steps.go-cache.outputs.cache-hit != 'true' + run: make install-tools - name: Cache Lint Build uses: actions/cache@v3 with: @@ -110,6 +116,12 @@ jobs: ~/go/bin ~/go/pkg/mod key: go-cache-${{ runner.os }}-${{ hashFiles('**/go.sum') }} + - name: Install dependencies + if: steps.go-cache.outputs.cache-hit != 'true' + run: make -j2 gomoddownload + - name: Install Tools + if: steps.go-cache.outputs.cache-hit != 'true' + run: make install-tools - name: CheckDoc run: make checkdoc - name: Porto @@ -155,6 +167,12 @@ jobs: ~/go/bin ~/go/pkg/mod key: go-cache-${{ runner.os }}-${{ hashFiles('**/go.sum') }} + - name: Install dependencies + if: steps.go-cache.outputs.cache-hit != 'true' + run: make -j2 gomoddownload + - name: Install Tools + if: steps.go-cache.outputs.cache-hit != 'true' + run: make install-tools - name: Cache Test Build uses: actions/cache@v3 with: @@ -211,6 +229,12 @@ jobs: ~/go/bin ~/go/pkg/mod key: go-cache-${{ runner.os }}-${{ hashFiles('**/go.sum') }} + - name: Install dependencies + if: steps.go-cache.outputs.cache-hit != 'true' + run: make -j2 gomoddownload + - name: Install Tools + if: steps.go-cache.outputs.cache-hit != 'true' + run: make install-tools - name: Correctness run: make -C testbed run-correctness-traces-tests correctness-metrics: @@ -231,6 +255,12 @@ jobs: ~/go/bin ~/go/pkg/mod key: go-cache-${{ runner.os }}-${{ hashFiles('**/go.sum') }} + - name: Install dependencies + if: steps.go-cache.outputs.cache-hit != 'true' + run: make -j2 gomoddownload + - name: Install Tools + if: steps.go-cache.outputs.cache-hit != 'true' + run: make install-tools - name: Correctness run: make -C testbed run-correctness-metrics-tests @@ -269,6 +299,12 @@ jobs: ~/go/bin ~/go/pkg/mod key: go-cache-${{ runner.os }}-${{ hashFiles('**/go.sum') }} + - name: Install dependencies + if: steps.go-cache.outputs.cache-hit != 'true' + run: make -j2 gomoddownload + - name: Install Tools + if: steps.go-cache.outputs.cache-hit != 'true' + run: make install-tools - name: Build Collector ${{ matrix.binary }} run: make otelcontribcol-${{ matrix.binary }} - name: Upload Collector Binaries @@ -397,6 +433,12 @@ jobs: ~/go/bin ~/go/pkg/mod key: go-cache-${{ runner.os }}-${{ hashFiles('**/go.sum') }} + - name: Install dependencies + if: steps.go-cache.outputs.cache-hit != 'true' + run: make -j2 gomoddownload + - name: Install Tools + if: steps.go-cache.outputs.cache-hit != 'true' + run: make install-tools - name: Download Binaries uses: actions/download-artifact@v3 with: @@ -456,6 +498,12 @@ jobs: ~/go/bin ~/go/pkg/mod key: go-cache-${{ runner.os }}-${{ hashFiles('**/go.sum') }} + - name: Install dependencies + if: steps.go-cache.outputs.cache-hit != 'true' + run: make -j2 gomoddownload + - name: Install Tools + if: steps.go-cache.outputs.cache-hit != 'true' + run: make install-tools - name: Set Release Tag id: github_tag run: ./.github/workflows/scripts/set_release_tag.sh diff --git a/.github/workflows/load-tests.yml b/.github/workflows/load-tests.yml index fbe1b770f546..61f7456f8fcb 100644 --- a/.github/workflows/load-tests.yml +++ b/.github/workflows/load-tests.yml @@ -79,6 +79,12 @@ jobs: ~/go/pkg/mod ~/.cache/go-build key: loadtest-${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} + - name: Install Dependencies + if: steps.go-cache.outputs.cache-hit != 'true' + run: make -j2 gomoddownload + - name: Install Tools + if: steps.go-cache.outputs.cache-hit != 'true' + run: make install-tools - run: mkdir -p results && touch results/TESTRESULTS.md - name: Download Collector Binaries uses: actions/download-artifact@v3 diff --git a/.github/workflows/stability-tests.yml b/.github/workflows/stability-tests.yml index 759187587779..6ce52e683f5d 100644 --- a/.github/workflows/stability-tests.yml +++ b/.github/workflows/stability-tests.yml @@ -61,6 +61,12 @@ jobs: ~/go/pkg/mod ~/.cache/go-build key: stability-${{ runner.os }}-go-${{ hashFiles('**/go.mod', '**/go.sum') }} + - name: Install Dependencies + if: steps.go-cache.outputs.cache-hit != 'true' + run: make -j2 gomoddownload + - name: Install Tools + if: steps.go-cache.outputs.cache-hit != 'true' + run: make install-tools - name: Run Stability Tests run: make stability-tests env: