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: add auto-config and build inputs. #61

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

austinletson
Copy link
Collaborator

@austinletson austinletson commented Jun 14, 2024

auto-config allows users to specify if lean-action should use the Lake workspace to automatically decide which CI features to run.

build allows users to specify if lean-action runs lake build.

By default, auto-config: true.

The test and build (and soon lint, see #46) inputs allow users to override the automatically configured behavior or configure lean-action when auto-config: false.

auto-config: true is close to the previous default behavior, however there is a difference in the outcome of the lake test step. When users set test: true manually, lean-action must find tests with lake check-test and run lake test or it will fail (this was the previous behavior). However with auto-config: true, if lake check-test fails, lean-action will not run lake test and this won't cause lean-action to fail.

Closes #60, #53, and #30.

`auto-config` allows users to specify if `lean-action` should
use the Lake workspace to automatically decide which CI features to run.

`build` allows users to specify if `lean-action` runs `lake build`.

By default, `auto-config: true`.

The `test` and `build` (and soon `lint`, see #46) inputs
allow users to override the automatically configured behavior
or configure `lean-action` when `auto-config: false`.

`auto-config: true` is close to the previous default behavior,
however there is a difference in the outcome of the `lake test` step.
When users set `test: true` manually, `lean-action` must find tests
with `lake check-test` and run `lake test` or it will fail
(this was the previous behavior). However with `auto-config: true`,
if `lake check-test` fails, `lean-action` will not run `lake test`
and this won't cause `lean-action` to fail.
@austinletson austinletson linked an issue Jun 14, 2024 that may be closed by this pull request
@austinletson
Copy link
Collaborator Author

For a better idea of how these options are presented to users see the new ## Configuring which features lean-action runs section in the README.md.

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

Successfully merging this pull request may close these issues.

Create auto-config input
1 participant