error: function must be called `main`
--> tests/compile_tests/wrong_function_name.rs:4:4
|
4 | fn not_main() -> GitHubActionResult {
| ^^^^^^^^
warning: unused imports: `GitHubActionResult`, `gha_output`
--> tests/compile_tests/wrong_function_name.rs:1:26
|
1 | use gha_main::{gha_main, gha_output, GitHubActionResult};
| ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
error[E0601]: `main` function not found in crate `$CRATE`
--> tests/compile_tests/wrong_function_name.rs:7:2
|
7 | }
| ^ consider adding a `main` function to `$DIR/tests/compile_tests/wrong_function_name.rs`