diff --git a/.github/workflows/test-integration.yaml b/.github/workflows/test-integration.yaml index 806148268..9eaa2880a 100644 --- a/.github/workflows/test-integration.yaml +++ b/.github/workflows/test-integration.yaml @@ -34,7 +34,21 @@ jobs: run: touch webui/static/index.html - name: Build binary - run: make binary + run: make binary-linux-amd64 + + - name: Save go cache build + uses: actions/cache/save@v4 + with: + path: | + ~/.cache/go-build + key: ${{ runner.os }}-go-build-cache-${{ env.GO_VERSION }}-${{ hashFiles('**/go.sum') }} + + - name: Artifact traefik binary + uses: actions/upload-artifact@v4 + with: + name: traefik + path: ./dist/linux/amd64/traefik + retention-days: 1 test-integration: runs-on: ubuntu-latest @@ -61,8 +75,21 @@ jobs: - name: Avoid generating webui run: touch webui/static/index.html - - name: Build binary - run: make binary + - name: Download traefik binary + uses: actions/download-artifact@v4 + with: + name: traefik + path: ./dist/linux/amd64/ + + - name: Make binary executable + run: chmod +x ./dist/linux/amd64/traefik + + - name: Restore go cache build + uses: actions/cache/restore@v4 + with: + path: | + ~/.cache/go-build + key: ${{ runner.os }}-go-build-cache-${{ env.GO_VERSION }}-${{ hashFiles('**/go.sum') }} - name: Generate go test Slice id: test_split diff --git a/Makefile b/Makefile index f435fdc2d..b3a7f58b5 100644 --- a/Makefile +++ b/Makefile @@ -95,7 +95,7 @@ test-unit: .PHONY: test-integration #? test-integration: Run the integration tests -test-integration: binary +test-integration: GOOS=$(GOOS) GOARCH=$(GOARCH) go test ./integration -test.timeout=20m -failfast -v $(TESTFLAGS) .PHONY: test-ui-unit