Skip to content

Commit

Permalink
removed api container assembly from test jobs and inserted into a sep…
Browse files Browse the repository at this point in the history
…arate job
  • Loading branch information
angelo.andreussi committed Apr 19, 2024
1 parent cf259c7 commit 1b0c822
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/actions/runTestsTaggedAs/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ runs:
key: ${{ github.run_id }}-${{ github.run_number }}-maven-cache
- name: Docker images creation
if: ${{ inputs.needs-docker-images == 'true' }}
run: mvn clean install -pl ${APP_PROJECTS} && mvn clean install -Pdocker --f assembly/pom.xml
run: mvn clean install -pl ${APP_PROJECTS} && mvn clean install -Pdocker -f assembly/pom.xml -pl '!:kapua-assembly-api' #api container not used in the tests at all se we don't need to build it here
shell: bash
- name: Dns look-up containers needed for tests - message-broker
if: ${{ inputs.needs-docker-images == 'true' }}
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/kapua-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,22 @@ jobs:
- run: docker images -a # used as log (should show only github environment standard docker images; if kapua images are present, something is wrong)
- run: mvn -B ${BUILD_OPTS} -DskipTests clean install -T 1C
- run: bash <(curl -s https://codecov.io/bash)
assembly-api-container:
needs: build
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- uses: actions/checkout@v3 # Checks out a copy of the repository on the ubuntu-latest machine
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 11
- name: Cache Maven repository #retrieve maven artifacts for the console building
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ github.run_id }}-${{ github.run_number }}-maven-cache
- run: mvn clean install -Pdocker -pl :kapua-assembly-java-base,:kapua-assembly-jetty-base,:kapua-assembly-api
test-brokerAcl:
needs: build
runs-on: ubuntu-latest
Expand Down

0 comments on commit 1b0c822

Please sign in to comment.