act/pkg/model
Nathan Shaaban 7286b43b0e
fix: fail if no stages were found (#1970)
* fix: fail if no stages were found

Adds a warning message if act is cannot find any stages to run
with the filters provided.

Reproduction:
- run `act -j gibberish`

Desired behavior: some indication I did something silly
Actual behavior: no output, just exit with success.

As a human who often makes spelling mistakes,
it would be nice if act warned me what I was doing that was silly
rather than exiting apparently doing
nothing with no obvious indication
I did something wrong.

* Revert "fix: fail if no stages were found"

This reverts commit 226adf1c15cf4c01d516a05dc923507e6999978d.

* fix: fail if no stages were found

Errors if no stages were found with the given filters.
Prints out a helpful error message, pointing users
in the right place for how to specify which stage to run.

Reproduction:
- run `act -j gibberish`

Desired behavior: some indication I did something silly
Actual behavior: no output, just exit with success.

As a human who often makes spelling mistakes,
it would be nice if act warned me what I was doing that was silly
rather than exiting apparently doing
nothing with no obvious indication
I did something wrong.
2023-08-21 17:53:47 +00:00
..
testdata implement volume mount for container job (#1101) 2022-04-04 18:01:13 +00:00
action.go implement pre and post steps (#1089) 2022-05-24 13:36:06 +00:00
github_context.go fix: ghc assignment typo (#1729) 2023-04-13 14:09:29 +00:00
github_context_test.go fix: correct ref and ref_name (#1672) 2023-03-09 20:03:13 +00:00
job_context.go refactor: export and move shared contexts into pkg/model (#931) 2021-12-22 19:52:09 +00:00
planner.go fix: fail if no stages were found (#1970) 2023-08-21 17:53:47 +00:00
planner_test.go fix: fail if no stages were found (#1970) 2023-08-21 17:53:47 +00:00
step_result.go refactor: fix savestate in pre steps (#1466) 2022-12-15 17:08:31 +00:00
workflow.go feat: cmd support for windows (#1941) 2023-08-08 15:44:25 +00:00
workflow_test.go throw when invalid uses key is provided (#1804) 2023-07-10 21:27:43 -07:00