mirror of
https://github.com/traefik/traefik.git
synced 2025-08-06 22:57:14 +02:00
Improve integration tests
This commit is contained in:
parent
50931813f2
commit
a59bcb29b5
33
.github/workflows/test-integration.yaml
vendored
33
.github/workflows/test-integration.yaml
vendored
@ -34,7 +34,21 @@ jobs:
|
|||||||
run: touch webui/static/index.html
|
run: touch webui/static/index.html
|
||||||
|
|
||||||
- name: Build binary
|
- 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:
|
test-integration:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -61,8 +75,21 @@ jobs:
|
|||||||
- name: Avoid generating webui
|
- name: Avoid generating webui
|
||||||
run: touch webui/static/index.html
|
run: touch webui/static/index.html
|
||||||
|
|
||||||
- name: Build binary
|
- name: Download traefik binary
|
||||||
run: make 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
|
- name: Generate go test Slice
|
||||||
id: test_split
|
id: test_split
|
||||||
|
2
Makefile
2
Makefile
@ -95,7 +95,7 @@ test-unit:
|
|||||||
|
|
||||||
.PHONY: test-integration
|
.PHONY: test-integration
|
||||||
#? test-integration: Run the integration tests
|
#? test-integration: Run the integration tests
|
||||||
test-integration: binary
|
test-integration:
|
||||||
GOOS=$(GOOS) GOARCH=$(GOARCH) go test ./integration -test.timeout=20m -failfast -v $(TESTFLAGS)
|
GOOS=$(GOOS) GOARCH=$(GOARCH) go test ./integration -test.timeout=20m -failfast -v $(TESTFLAGS)
|
||||||
|
|
||||||
.PHONY: test-ui-unit
|
.PHONY: test-ui-unit
|
||||||
|
Loading…
Reference in New Issue
Block a user