CodeEdit
CodeEdit copied to clipboard
[chore]: Pipelines for CI/CD
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.