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

[chore]: Pipelines for CI/CD #889

Merged
merged 4 commits into from Jan 5, 2023

Conversation

lukepistrol
Copy link
Member

@lukepistrol lukepistrol commented Jan 4, 2023

Currently all our actions get triggered by on-push or on-pull-request events and run in parallel. The problem with that is, that for example after pushing to the main branch, if the tests were to fail, the pre-release would be deployed anyway.

To mitigate this issue I implemented pipelines for both on-push events on main as well as on-pull-request events.

  • on-push: SwiftLint -> Tests -> Deploy Pre-Release
  • on-pull-request: SwiftLint -> Tests

Now if any job fails, no succeeding job will be run and the whole pipeline fails. Since we would not want to deploy a pre-release with a potential error.

Example

Screenshot 2023-01-04 at 13 51 12

Update Dependencies

  • update CodeEditTextView to 0.2.2

only deploy on the main repo

Co-authored-by: Wesley de Groot <email@wesleydegroot.nl>
0xWDG
0xWDG previously approved these changes Jan 4, 2023
Copy link
Collaborator

@0xWDG 0xWDG left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Copy link
Collaborator

@thecoolwinter thecoolwinter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Copy link
Collaborator

@austincondiff austincondiff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! I love the thinking behind this.

@lukepistrol lukepistrol merged commit 1dcf705 into CodeEditApp:main Jan 5, 2023
@lukepistrol lukepistrol deleted the chore/ci-pipeline branch January 5, 2023 00:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants