feat: add the runner validate subcommand #757
Labels
No labels
FreeBSD
Kind/Breaking
Kind/Bug
Kind/Chore
Kind/DependencyUpdate
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
Windows
linux-powerpc64le
linux-riscv64
linux-s390x
run-end-to-end-tests
run-forgejo-tests
run-multi-platform-tests
No milestone
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
forgejo/runner!757
Loading…
Reference in a new issue
No description provided.
Delete branch "earl-warren/runner:wip-validate"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
forgejo-runner validatecommand can be used to verify if an action or a workflow is conformant with the expected schema.forgejo-runner validate --repository https://example.com/my/repositorywill validate all the workflows and actions a Git repository contains. Alternativelyforgejo-runner validate --path myaction/action.yml --actionorforgejo-runner validate --path .forgejo/workflows/test.yml --workflowcan be used to validate a single file. It is recommended to use these commands to verify existing actions and workflows pass before upgrading to Forgejo runner v8.0.0 or above to not disrupt existing workflows.WIP: feat: add the runner validate subcommandto WIP: feat: add the runner validate subcommand [skip cascade]f0edfb2f1fc80ffa1484c80ffa1484c99e0ca607WIP: feat: add the runner validate subcommand [skip cascade]to feat: add the runner validate subcommand [skip cascade]c99e0ca607a490a0e170feat: add the runner validate subcommand [skip cascade]to WIP: feat: add the runner validate subcommand [skip cascade]WIP: feat: add the runner validate subcommand [skip cascade]to feat: add the runner validate subcommand [skip cascade]feat: add the runner validate subcommand [skip cascade]to feat: add the runner validate subcommanda490a0e1704d19317341cascading-pr updated at actions/setup-forgejo#536
otherwise LGTM
@ -0,0 +62,4 @@}validateCmd.Flags().BoolVarP(&validateArgs.workflow, "workflow", "", false, "use the workflow schema")validateCmd.Flags().BoolVarP(&validateArgs.action, "action", "", false, "use the action schema")is it possible to make
--workflowand--actionmutual exclusive?good idea
32db08a9c1..a594e9b6654d1931734132db08a9c1cascading-pr updated at actions/setup-forgejo#536
32db08a9c1a594e9b665cascading-pr updated at actions/setup-forgejo#536
test failures:
cascading-pr updated at actions/setup-forgejo#536
feat: add the runner validate subcommandto feat: add the runner validate subcommand [skip cascade]ad3e0fbe9a9679edd7bdLet see if this error is transient.
9679edd7bd9289b1a9899289b1a989c5f4a7dda2c5f4a7dda2f2b0501c58f2b0501c58bc2a0f2cdf4632bbcbb89071fb28899071fb2889f23f7d4fddfeat: add the runner validate subcommand [skip cascade]to feat: add the runner validate subcommand@viceice it was a false negative. Let see when it happens again. I'm sure it will. Meanwhile this passes. The new
validate --repositorybehavior is in a separate commit to facilitate the review, the first commit was unchanged.f23f7d4fdd2de2a30b01cascading-pr updated at actions/setup-forgejo#536
The failure is not explained but within the runner repository so not a concern.
The errors are expected: those are fixtures by the same name as actions files but unrelated.
The error is expected, it is a fixture.
cascading-pr updated at actions/setup-forgejo#536
1577cef5e3238dd49e30cascading-pr updated at actions/setup-forgejo#536