Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Fallback App CI #404

Merged
merged 7 commits into from
Mar 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/app_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
#
# When we change the Flutter version, we need to trigger this workflow.
- ".fvm/fvm_config.json"
# We only build and deploy a new version, when a user relevant files
Expand Down
59 changes: 59 additions & 0 deletions .github/workflows/app_fallback_ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# 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:
types:
- opened
- synchronize
- reopened
- ready_for_review
paths-ignore:
- ".fvm/fvm_config.json"
- "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"'