CodeEdit icon indicating copy to clipboard operation
CodeEdit copied to clipboard

[chore]: Pipelines for CI/CD

Open lukepistrol opened this issue 2 years ago • 0 comments

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

lukepistrol avatar Jan 04 '23 12:01 lukepistrol