WIP: add more verbose workflow validation before parsing #36

Draft
thefox wants to merge 1 commit from thefox/act:integrate_actionlint into main
Member

Use actionlint to validate workflow before parsing it.

This will enable more verbose errors in forgejo.

Fixes: https://codeberg.org/forgejo/forgejo/issues/2187

Use actionlint to validate workflow before parsing it. This will enable more verbose errors in forgejo. Fixes: https://codeberg.org/forgejo/forgejo/issues/2187
thefox added 1 commit 2024-03-25 20:46:52 +00:00
All checks were successful
/ cascade (pull_request) Has been skipped
checks / check and test (pull_request) Successful in 6m18s
1c0fa68d91
add actionlint check before parsing
Owner

Are the tests data you added used by this test? I'm asking because only a limited number of tests are run in this CI. It is perfectly ok to add more, only changes done here have not yet required more.

Are the tests data you added used [by this test](https://code.forgejo.org/forgejo/act/actions/runs/165#jobstep-7-62)? I'm asking because only a limited number of tests are run in this CI. It is perfectly ok to add more, only changes done here have not yet required more.
Author
Member

They are. in tests I only added on key, since actionlint requires it and the new addition is the workflow from the forgejo issue to prevent potential regressions. Though I'm not certain sure if I shouldn't move actionlint pass to forgejo itself...

They are. in tests I only added `on` key, since actionlint requires it and the new addition is the workflow from the forgejo issue to prevent potential regressions. Though I'm not certain sure if I shouldn't move actionlint pass to forgejo itself...
All checks were successful
/ cascade (pull_request) Has been skipped
checks / check and test (pull_request) Successful in 6m18s
This pull request is marked as a work in progress.
This branch is out-of-date with the base branch

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u integrate_actionlint:thefox-integrate_actionlint
git checkout thefox-integrate_actionlint

Merge

Merge the changes and update on Forgejo.
git checkout main
git merge --no-ff thefox-integrate_actionlint
git checkout main
git merge --ff-only thefox-integrate_actionlint
git checkout thefox-integrate_actionlint
git rebase main
git checkout main
git merge --no-ff thefox-integrate_actionlint
git checkout main
git merge --squash thefox-integrate_actionlint
git checkout main
git merge --ff-only thefox-integrate_actionlint
git checkout main
git merge thefox-integrate_actionlint
git push origin main
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: forgejo/act#36
No description provided.