Skip to content

Running tests with GitHub actions

One of the most best things you can do for your Flutter project is to run all the tests when you push your code.

And with GitHub workflows, this can be accomplished in 10 lines of code.

Just create a tests.yaml file and put it in .github/workflows

Wanna learn more? 👇


There is SO MUCH more that you can do with GitHub workflows!

This page covers the entire workflows syntax. 100% worth it:

https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions

And here’s a gist with the basic test workflow that you can add to your project:

https://gist.github.com/bizz84/c9b6d2ce383ac96c2a6d297cfeaa31d6


I’ll be covering all the advanced setup stuff, including code signing, Testflight, Fastlane, API secrets and much more in my upcoming course later this year.

For now, here’s a signup link to get my pre-sale discount:

Happy coding!

Previous Next
How to run Flutter Integration Tests at Hyper Speed Better Comments Extension for VSCode

Last update: 18 septembre 2023
Created: 18 septembre 2023