diff --git a/.github/actions/runTestsTaggedAs/action.yaml b/.github/actions/runTestsTaggedAs/action.yaml index 1a3303e7e05..47d2f447241 100644 --- a/.github/actions/runTestsTaggedAs/action.yaml +++ b/.github/actions/runTestsTaggedAs/action.yaml @@ -1,4 +1,4 @@ -name: 'Execute tests tagged in a certain way' +name: 'Execute tests' description: 'Execute tests suite for tests tagged as specified' inputs: tag: diff --git a/.github/actions/saveBuiltKapuaArtifacts/action.yaml b/.github/actions/saveBuiltKapuaArtifacts/action.yaml index ef43bf76fcd..5dbb51bb56f 100644 --- a/.github/actions/saveBuiltKapuaArtifacts/action.yaml +++ b/.github/actions/saveBuiltKapuaArtifacts/action.yaml @@ -9,6 +9,7 @@ runs: mkdir --parents ~/.m2/kapua-repository/org/eclipse/ mv ~/.m2/repository/org/eclipse/kapua ~/.m2/kapua-repository/org/eclipse/kapua shell: bash + - name: Save built Kapua artifacts uses: actions/cache/save@v4 with: diff --git a/.github/actions/setUpRunner/action.yaml b/.github/actions/setUpRunner/action.yaml index 31495b0e34c..1d3f119f6f6 100644 --- a/.github/actions/setUpRunner/action.yaml +++ b/.github/actions/setUpRunner/action.yaml @@ -4,7 +4,7 @@ description: | - Setup Java 11 - Setup Node 16 - Install Swagger CLI - - Add entries to /etc/hosts + - Add entries to /etc/hosts for tests runs: using: "composite" steps: @@ -15,11 +15,11 @@ runs: java-version: 11 - name: Setup Node 16 - uses: actions/setup-node@v4 # Installs Node and NPM + uses: actions/setup-node@v4 with: node-version: 16 - - name: Install Swagger CLI # Installs Swagger CLI to bundle OpenAPI files + - name: Install Swagger CLI # Required to bundle OpenAPI files run: 'npm install -g @apidevtools/swagger-cli' shell: bash diff --git a/.github/workflows/kapua-ci.yaml b/.github/workflows/kapua-ci.yaml index e2e848b2f4e..bb4c8038388 100755 --- a/.github/workflows/kapua-ci.yaml +++ b/.github/workflows/kapua-ci.yaml @@ -15,21 +15,16 @@ jobs: steps: - name: Checkout repository # Checks out a copy of the repository on the runner uses: actions/checkout@v4 - - name: Set up runner uses: ./.github/actions/setUpRunner - - name: Set up Maven caches uses: ./.github/actions/setUpMavenCaches with: kapua-artifact-cache-enabled: 'false' - - name: Maven version run: mvn --version - - name: Build Kapua project run: mvn -B -DskipTests clean install -T 1C - - name: Save built Kapua Artifacts uses: ./.github/actions/saveBuiltKapuaArtifacts @@ -41,15 +36,12 @@ jobs: steps: - name: Checkout repository # Checks out a copy of the repository on the runner uses: actions/checkout@v4 - - name: Set up runner uses: ./.github/actions/setUpRunner - - name: Set up Maven caches uses: ./.github/actions/setUpMavenCaches with: kapua-artifact-cache-enabled: 'false' - - name: Build Kapua Javadoc run: mvn -B -DskipTests install javadoc:jar @@ -81,6 +73,7 @@ jobs: with: tag: '@brokerAcl' needs-docker-images: 'true' + test-tag: needs: build runs-on: ubuntu-latest @@ -94,6 +87,7 @@ jobs: with: tag: '@tag' needs-docker-images: 'false' + test-broker: needs: build runs-on: ubuntu-latest @@ -107,6 +101,7 @@ jobs: with: tag: '@broker' needs-docker-images: 'true' + test-device: needs: build runs-on: ubuntu-latest @@ -120,6 +115,7 @@ jobs: with: tag: '@device' needs-docker-images: 'true' + test-device-management: needs: build runs-on: ubuntu-latest @@ -133,6 +129,7 @@ jobs: with: tag: '@deviceManagement' needs-docker-images: 'true' + test-connection: needs: build runs-on: ubuntu-latest @@ -146,6 +143,7 @@ jobs: with: tag: '@connection' needs-docker-images: 'true' + test-datastore: needs: build runs-on: ubuntu-latest @@ -159,6 +157,7 @@ jobs: with: tag: '@datastore' needs-docker-images: 'true' + test-user: needs: build runs-on: ubuntu-latest @@ -172,6 +171,7 @@ jobs: with: tag: '@user' needs-docker-images: 'false' + test-userIntegrationBase: needs: build runs-on: ubuntu-latest @@ -185,6 +185,7 @@ jobs: with: tag: '@userIntegrationBase' needs-docker-images: 'true' + test-userIntegration: needs: build runs-on: ubuntu-latest @@ -198,6 +199,7 @@ jobs: with: tag: '@userIntegration' needs-docker-images: 'true' + test-security: needs: build runs-on: ubuntu-latest @@ -211,6 +213,7 @@ jobs: with: tag: '@security' needs-docker-images: 'false' + test-jobsAndScheduler: needs: build runs-on: ubuntu-latest @@ -224,6 +227,7 @@ jobs: with: tag: '(@job or @scheduler) and not @it' needs-docker-images: 'false' + test-job-IT: needs: build runs-on: ubuntu-latest @@ -237,6 +241,7 @@ jobs: with: tag: '@job and @it' needs-docker-images: 'true' + test-jobEngine-IT: needs: build runs-on: ubuntu-latest @@ -250,6 +255,7 @@ jobs: with: tag: '@jobEngine' needs-docker-images: 'true' + test-jobsIntegration: needs: build runs-on: ubuntu-latest @@ -263,6 +269,7 @@ jobs: with: tag: '@jobsIntegration' needs-docker-images: 'true' + test-accountAndTranslator: needs: build runs-on: ubuntu-latest @@ -276,6 +283,7 @@ jobs: with: tag: '@account or @translator' needs-docker-images: 'false' + test-RoleAndGroup: needs: build runs-on: ubuntu-latest @@ -289,6 +297,7 @@ jobs: with: tag: '@role or @group' needs-docker-images: 'false' + test-deviceRegistry: needs: build runs-on: ubuntu-latest @@ -302,6 +311,7 @@ jobs: with: tag: '@deviceRegistry' needs-docker-images: 'true' + test-endpoint: needs: build runs-on: ubuntu-latest @@ -315,6 +325,7 @@ jobs: with: tag: '@endpoint' needs-docker-images: 'true' + test-api-auth: needs: build runs-on: ubuntu-latest @@ -329,6 +340,7 @@ jobs: tag: '@rest_auth' needs-docker-images: 'true' needs-api-docker-image: 'true' + test-api-corsfilter: needs: test-endpoint # test suite dependent on the endpoint service (if it has failings it's useless to perform these tests) runs-on: ubuntu-latest @@ -343,6 +355,7 @@ jobs: tag: '@rest_cors' needs-docker-images: 'true' needs-api-docker-image: 'true' + test-api-parsing: needs: test-api-auth runs-on: ubuntu-latest diff --git a/.github/workflows/security-scan.yaml b/.github/workflows/security-scan.yaml index 03ff73f959c..5f038402956 100755 --- a/.github/workflows/security-scan.yaml +++ b/.github/workflows/security-scan.yaml @@ -3,8 +3,6 @@ on: push: branches: - 'develop' - - 'release-**' - - 'feat-improvedGitHubActionCaching' env: BUILD_OPTS: "" diff --git a/.github/workflows/sonarCloud-scan.yaml b/.github/workflows/sonarCloud-scan.yaml index 78a1c42d297..27dd2c44235 100644 --- a/.github/workflows/sonarCloud-scan.yaml +++ b/.github/workflows/sonarCloud-scan.yaml @@ -4,12 +4,9 @@ on: push: branches: - 'develop' - - 'release-**' - - 'feat-improvedGitHubActionCaching' pull_request: branches: - 'develop' - - 'release-**' jobs: build: