From a34705eb9d262d987cbdc757f1553b4f3f16a57b Mon Sep 17 00:00:00 2001 From: nilsreichardt Date: Tue, 28 Feb 2023 15:56:49 +0100 Subject: [PATCH 1/6] Add fallback ci --- .github/workflows/app_ci.yml | 3 ++ .github/workflows/app_fallback_ci.yml | 53 +++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 .github/workflows/app_fallback_ci.yml diff --git a/.github/workflows/app_ci.yml b/.github/workflows/app_ci.yml index e22c95393..428174053 100644 --- a/.github/workflows/app_ci.yml +++ b/.github/workflows/app_ci.yml @@ -26,6 +26,9 @@ on: # ready for review. - ready_for_review paths: + # When you add a new path, make sure to also add the path to the + # "paths-ignore" section in the "app_fallback_ci.yml" file. + # # We only build and deploy a new version, when a user relevant files # changed. - "app/**" diff --git a/.github/workflows/app_fallback_ci.yml b/.github/workflows/app_fallback_ci.yml new file mode 100644 index 000000000..1f52818de --- /dev/null +++ b/.github/workflows/app_fallback_ci.yml @@ -0,0 +1,53 @@ +# Copyright (c) 2022 Sharezone UG (haftungsbeschränkt) +# Licensed under the EUPL-1.2-or-later. +# +# You may obtain a copy of the Licence at: +# https://joinup.ec.europa.eu/software/page/eupl +# +# SPDX-License-Identifier: EUPL-1.2 + +# A workaround for GitHub Actions jobs that required and based on a path. +# +# Currently it's not possible to set a GitHub Action to required which is +# based on path changes. The reason for this that the action is not executed +# when the action does not match the paths. Therefore, merging will be +# blocked. +# +# A workaround is to have a job which the same name. +# +# https://github.com/github/docs/commit/4364076e0fb56c2579ae90cd048939eaa2c18954 + +name: app-fallback-ci + +on: + pull_request: + paths-ignore: + - "app/**" + - "lib/**" + - ".github/workflows/app_ci.yml" + +jobs: + test: + runs-on: ubuntu-latest + steps: + - run: 'echo "No test required"' + + analyze: + runs-on: ubuntu-latest + steps: + - run: 'echo "No analyze required"' + + android-integration-test: + runs-on: ubuntu-latest + steps: + - run: 'echo "No android-integration-test required"' + + ios-integration-test: + runs-on: ubuntu-latest + steps: + - run: 'echo "No ios-integration-test required"' + + web-preview: + runs-on: ubuntu-latest + steps: + - run: 'echo "No web-preview required"' From bc762b383dadf7758c714e432f1de9ae0ff00899 Mon Sep 17 00:00:00 2001 From: nilsreichardt Date: Tue, 28 Feb 2023 16:01:10 +0100 Subject: [PATCH 2/6] Use the same triggers --- .github/workflows/app_fallback_ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/app_fallback_ci.yml b/.github/workflows/app_fallback_ci.yml index 1f52818de..85f40410a 100644 --- a/.github/workflows/app_fallback_ci.yml +++ b/.github/workflows/app_fallback_ci.yml @@ -21,6 +21,11 @@ name: app-fallback-ci on: pull_request: + types: + - opened + - synchronize + - reopened + - ready_for_review paths-ignore: - "app/**" - "lib/**" From 226b50f74731249086e5d5d5e7685ed91fa6e836 Mon Sep 17 00:00:00 2001 From: nilsreichardt Date: Tue, 28 Feb 2023 16:01:19 +0100 Subject: [PATCH 3/6] , --- .github/workflows/app_fallback_ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/app_fallback_ci.yml b/.github/workflows/app_fallback_ci.yml index 85f40410a..d57fd99b4 100644 --- a/.github/workflows/app_fallback_ci.yml +++ b/.github/workflows/app_fallback_ci.yml @@ -8,7 +8,7 @@ # A workaround for GitHub Actions jobs that required and based on a path. # -# Currently it's not possible to set a GitHub Action to required which is +# Currently, it's not possible to set a GitHub Action to required which is # based on path changes. The reason for this that the action is not executed # when the action does not match the paths. Therefore, merging will be # blocked. From 892f2b5e89f6825dd59b36169a24f7cf71afc352 Mon Sep 17 00:00:00 2001 From: nilsreichardt Date: Tue, 28 Feb 2023 16:04:44 +0100 Subject: [PATCH 4/6] use same name --- .github/workflows/app_fallback_ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/app_fallback_ci.yml b/.github/workflows/app_fallback_ci.yml index d57fd99b4..bf0b8dfa6 100644 --- a/.github/workflows/app_fallback_ci.yml +++ b/.github/workflows/app_fallback_ci.yml @@ -17,7 +17,7 @@ # # https://github.com/github/docs/commit/4364076e0fb56c2579ae90cd048939eaa2c18954 -name: app-fallback-ci +name: app-ci on: pull_request: From 2a4f0c2af7a8b7a9c722144e8dc47f7f00e3baec Mon Sep 17 00:00:00 2001 From: nilsreichardt Date: Tue, 28 Feb 2023 16:06:24 +0100 Subject: [PATCH 5/6] Revert "use same name" This reverts commit 892f2b5e89f6825dd59b36169a24f7cf71afc352. --- .github/workflows/app_fallback_ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/app_fallback_ci.yml b/.github/workflows/app_fallback_ci.yml index bf0b8dfa6..d57fd99b4 100644 --- a/.github/workflows/app_fallback_ci.yml +++ b/.github/workflows/app_fallback_ci.yml @@ -17,7 +17,7 @@ # # https://github.com/github/docs/commit/4364076e0fb56c2579ae90cd048939eaa2c18954 -name: app-ci +name: app-fallback-ci on: pull_request: From 05efa7b1bbe73d1ad2087c27b4ec21f8aaa015f4 Mon Sep 17 00:00:00 2001 From: nilsreichardt Date: Thu, 2 Mar 2023 23:10:14 +0100 Subject: [PATCH 6/6] Add `.fvm` --- .github/workflows/app_fallback_ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/app_fallback_ci.yml b/.github/workflows/app_fallback_ci.yml index d57fd99b4..7a7b7eeec 100644 --- a/.github/workflows/app_fallback_ci.yml +++ b/.github/workflows/app_fallback_ci.yml @@ -27,6 +27,7 @@ on: - reopened - ready_for_review paths-ignore: + - ".fvm/fvm_config.json" - "app/**" - "lib/**" - ".github/workflows/app_ci.yml"