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

feat: run specific tasks as services #229

Open
cristianoliveira opened this issue Nov 19, 2024 · 0 comments
Open

feat: run specific tasks as services #229

cristianoliveira opened this issue Nov 19, 2024 · 0 comments

Comments

@cristianoliveira
Copy link
Owner

cristianoliveira commented Nov 19, 2024

Sometimes I have to open some app or long-lived process in my workflow as part of a bigger workflow but I want it to behave more like a local service that once something change it is restarted.

Ex on how I achieve that today:

- name: run fe app
  run: cd web && yarn dev --watch & # This runs on background
  run_on_init: true

- name: run golang app
  run: 
    - pkill mobile-payments-web || true
    - make run-backend &
  change: '**/*.go'
  run_on_init: true
  # Maybe here goes a `service: true`

- name: run tests app
  run:  make tests
  change: '**/*.go'
  run_on_init: true
@cristianoliveira cristianoliveira changed the title feat: run as service feat: run specific tasks as services Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant