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

Split main.yml into app_ci.yml and license.yml to use path filters #400

Merged
merged 8 commits into from
Feb 28, 2023

Conversation

nilsreichardt
Copy link
Member

@nilsreichardt nilsreichardt commented Feb 27, 2023

Before this PR we had all CI workflow in one main.yml file. The disadvantage: we always triggered the unit tests, analyze jobs, integration tests, web preview, etc. even when only made a change in .md file -> always long CI times.

To be able to only run the app workflow for app changes, we need to define the triggers on a file level. Therefore, we needed to split the workflows in separated file because sometimes we want to run workflow always (like the license check workflow) and some action only when the app changed (the analyze job).

We have now these file structures:

  • app_ci.yml: analyze, test, web-preview, ios-integration-test, android-integration-test
  • license.yml: check-files-licence-headers

@github-actions github-actions bot added the ci/cd label Feb 27, 2023
@github-actions
Copy link

github-actions bot commented Feb 27, 2023

Visit the preview URL for this PR (updated for commit 7225bfe):

https://sharezone-test--pr400-exclude-paths-for-al-dwx51m6v.web.app

(expires Mon, 06 Mar 2023 23:30:20 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 4cb3ae61e1e018abfd9841fd3239f5b49ccc034b

@nilsreichardt nilsreichardt marked this pull request as ready for review February 27, 2023 21:31
@nilsreichardt nilsreichardt enabled auto-merge (squash) February 27, 2023 23:27
@nilsreichardt nilsreichardt merged commit c5a7f27 into main Feb 28, 2023
@nilsreichardt nilsreichardt deleted the exclude-paths-for-alpha branch February 28, 2023 00:12
nilsreichardt added a commit that referenced this pull request Mar 7, 2023
This PR adds a CI for our CLI because with #400 the CLI was excluded
from our CI.

I have not added the path for our CLI to our `app_ci.yml` because
otherwise we would also trigger the integration test and the CI for our
app, which is not needed when only modifying our CLI. This makes our CI
faster and we don't need to use a `macos` machine for our `test` job
here.

A side effect is currently that we also run the analyze and test step
for our CLI in our app CI. However, I think that is not a big problem
(in the future we could add a `exclude-package` argument to the `sz
analyze` and `sz test` command to prevent this).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants