I find it unproductive to edit yml file, then push a new commit again, and repeat the process hundreds of times until you make it right. I began thinking about how to automate this tedious process.
I tried GitHub Actions logging but doesn't help much.
Install actionlint and nektos/act on your local machine.
actionlint. Fix issues if any.act. Update your workflow if required and proceed accordingly.If you're using VS Code then you can install Github Actions Locally extension. It's in its beta so proceed accordingly. It uses nektos/act under the hood.
GitHub just announced a VS Code extension which you can use.
Today, we’re excited to announce the release of the public beta of the official GitHub Actions VS Code extension. The extension provides support for authoring and editing workflows and helps you manage workflow runs without leaving your IDE.
In addition to Azeem's answer, you can install YAML extension for VSCode.
For Jetbrains' tools refer to this comment:
On the bottom right, click on "No JSON Schema"

Then choose "GitHub workflow"

Basically, you want that your IDE or text editor to load Github Actions' JSON schema.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With