diff --git a/.github/workflows/kubernetes.yml b/.github/workflows/kubernetes.yml index f36fa58..84a8a54 100644 --- a/.github/workflows/kubernetes.yml +++ b/.github/workflows/kubernetes.yml @@ -22,17 +22,20 @@ on: branches: - main - 1.6.x + - 1.8.x push: branches: - main - 1.6.x + - 1.8.x jobs: test: runs-on: ubuntu-latest env: + CAMEL_K_VERSION: 1.8.2 + YAKS_VERSION: 0.10.0 YAKS_IMAGE_NAME: "docker.io/citrusframework/yaks" - YAKS_VERSION: "0.7.0" YAKS_RUN_OPTIONS: "--timeout=15m" KUBECTL_WAIT_TIMEOUT: "180s" steps: @@ -72,6 +75,8 @@ jobs: kubectl describe nodes - name: Camel K Tools uses: container-tools/camel-k-action@v1 + with: + version: v${{ env.CAMEL_K_VERSION }} - name: Install Camel K run: | # Configure install options @@ -91,3 +96,12 @@ jobs: run: | # Then run integration tests yaks run test/integration.feature $YAKS_RUN_OPTIONS + - name: YAKS Report + if: failure() + run: | + yaks report + - uses: actions/upload-artifact@v2 + if: failure() + with: + name: dumps + path: _output/*-dump.log diff --git a/test/integration.feature b/test/integration.feature index 5bd05a4..b84b487 100644 --- a/test/integration.feature +++ b/test/integration.feature @@ -1,18 +1,18 @@ Feature: Basic Background: - Given Camel-K resource polling configuration + Given Camel K resource polling configuration | maxAttempts | 200 | | delayBetweenAttempts | 2000 | Scenario: Run Basic Camel-K integration - When load Camel-K integration Basic.java - Then Camel-K integration basic should be running - And Camel-K integration basic should print Hello World + When load Camel K integration Basic.java + Then Camel K integration basic should be running + And Camel K integration basic should print Hello World - Scenario: Run Routing Camel-K integration - Given Camel-K integration property file routing.properties - When load Camel-K integration Routing.java - Then Camel-K integration routing should be running - Then Camel-K integration routing should print Standard item: door - Then Camel-K integration routing should print !!Priority item: engine + Scenario: Run Routing Camel K integration + Given Camel K integration property file routing.properties + When load Camel K integration Routing.java + Then Camel K integration routing should be running + Then Camel K integration routing should print Standard item: door + Then Camel K integration routing should print !!Priority item: engine diff --git a/test/yaks-config.yaml b/test/yaks-config.yaml index d44b684..283b377 100644 --- a/test/yaks-config.yaml +++ b/test/yaks-config.yaml @@ -7,3 +7,12 @@ config: - ../Basic.java - ../Routing.java - ../routing.properties + dump: + enabled: true + failedOnly: true + includes: + - app=camel-k +post: + - name: print dump + if: env:CI=true && failure() + run: kamel dump