From c99df796e9749f16470827d9e2d3d37c0de578d2 Mon Sep 17 00:00:00 2001 From: Ivan Gabriele Date: Wed, 28 Feb 2024 10:59:14 +0100 Subject: [PATCH] Restore old CI/CD Back & Front workflow --- .github/workflows/application_build.yml | 43 +++++++++---------- .github/workflows/application_e2e_tests.yml | 2 +- .github/workflows/application_unit_tests.yml | 43 +++++++++---------- .github/workflows/cicd.yml | 44 ++++++++++---------- 4 files changed, 67 insertions(+), 65 deletions(-) diff --git a/.github/workflows/application_build.yml b/.github/workflows/application_build.yml index 32cb3acb97..26cef006c8 100644 --- a/.github/workflows/application_build.yml +++ b/.github/workflows/application_build.yml @@ -1,27 +1,28 @@ name: Application Build on: - push: - paths: - - "**.css" - - "**.kt" - - "**.png" - - "**.js" - - "**.json" - - "**.snap" - - "**.ts" - - "**.tsx" - - "**.yml" - - ".github/workflows/cicd.yml" - - "infra/configurations/**.properties" - - "infra/docker/app/**" - - "**.sql" - - "backend/pom.xml" - - "backend/build.gradle.kts" - - "Makefile" - - "frontend" - schedule: - - cron: "38 11 */3 * *" + workflow_dispatch: + # push: + # paths: + # - "**.css" + # - "**.kt" + # - "**.png" + # - "**.js" + # - "**.json" + # - "**.snap" + # - "**.ts" + # - "**.tsx" + # - "**.yml" + # - ".github/workflows/cicd.yml" + # - "infra/configurations/**.properties" + # - "infra/docker/app/**" + # - "**.sql" + # - "backend/pom.xml" + # - "backend/build.gradle.kts" + # - "Makefile" + # - "frontend" + # schedule: + # - cron: "38 11 */3 * *" concurrency: group: ${{ github.workflow }}-${{ github.event.push.head_commit.id }} diff --git a/.github/workflows/application_e2e_tests.yml b/.github/workflows/application_e2e_tests.yml index 557d9e330a..c95eb0e27e 100644 --- a/.github/workflows/application_e2e_tests.yml +++ b/.github/workflows/application_e2e_tests.yml @@ -39,7 +39,7 @@ jobs: github-token: ${{ secrets.GH_PAT }} name: workflow_share repository: MTES-MCT/monitorfish - run-id: ${{ github.event.workflow_run.id }} + run-id: ${{ github.event.workflow_run.workflow.id }} - name: Set STATUS_CHECK_ID environment variable run: | diff --git a/.github/workflows/application_unit_tests.yml b/.github/workflows/application_unit_tests.yml index 93a421054f..7c9f5b084d 100644 --- a/.github/workflows/application_unit_tests.yml +++ b/.github/workflows/application_unit_tests.yml @@ -1,27 +1,28 @@ name: Application Unit Tests on: - push: - paths: - - "**.css" - - "**.kt" - - "**.png" - - "**.js" - - "**.json" - - "**.snap" - - "**.ts" - - "**.tsx" - - "**.yml" - - ".github/workflows/cicd.yml" - - "infra/configurations/**.properties" - - "infra/docker/app/**" - - "**.sql" - - "backend/pom.xml" - - "backend/build.gradle.kts" - - "Makefile" - - "frontend" - schedule: - - cron: "38 11 */3 * *" + workflow_dispatch: + # push: + # paths: + # - "**.css" + # - "**.kt" + # - "**.png" + # - "**.js" + # - "**.json" + # - "**.snap" + # - "**.ts" + # - "**.tsx" + # - "**.yml" + # - ".github/workflows/cicd.yml" + # - "infra/configurations/**.properties" + # - "infra/docker/app/**" + # - "**.sql" + # - "backend/pom.xml" + # - "backend/build.gradle.kts" + # - "Makefile" + # - "frontend" + # schedule: + # - cron: "38 11 */3 * *" concurrency: group: ${{ github.workflow }}-${{ github.ref }} diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 90f3de4416..45bcdd1dc4 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -1,28 +1,28 @@ name: CI/CD Back & Front on: - workflow_dispatch: - # push: - # paths: - # - "**.css" - # - "**.kt" - # - "**.png" - # - "**.js" - # - "**.json" - # - "**.snap" - # - "**.ts" - # - "**.tsx" - # - "**.yml" - # - ".github/workflows/cicd.yml" - # - "infra/configurations/**.properties" - # - "infra/docker/app/**" - # - "**.sql" - # - "backend/pom.xml" - # - "backend/build.gradle.kts" - # - "Makefile" - # - "frontend" - # schedule: - # - cron: "38 11 */3 * *" + # workflow_dispatch: + push: + paths: + - "**.css" + - "**.kt" + - "**.png" + - "**.js" + - "**.json" + - "**.snap" + - "**.ts" + - "**.tsx" + - "**.yml" + - ".github/workflows/cicd.yml" + - "infra/configurations/**.properties" + - "infra/docker/app/**" + - "**.sql" + - "backend/pom.xml" + - "backend/build.gradle.kts" + - "Makefile" + - "frontend" + schedule: + - cron: "38 11 */3 * *" jobs: version: