The Complete Flutter Course: Build Android, iOS and Web Apps

Flutter CI with GitHub Actions

Continuous integration means every push to your repository is built on a clean machine, so a broken build shows up at once rather than on the day you release. The Complete Flutter Course: Build Android, iOS and Web Apps ends with that: a GitHub Actions workflow, walked through step by step on the finished launchpad app, that builds four platforms on GitHub's own machines. This guide picks out that lesson and the Git steps that lead to it, and says plainly what the workflow does not do.

Taught by Sagnik Bhattacharya and Paulina Knop

The Complete Flutter Course: Build Android, iOS and Web Apps: Sagnik Bhattacharya and Paulina Knop

What you will be able to do

You will be able to:

  • Install Git on Windows and clone a starter project from GitHub.
  • Explain what continuous integration and continuous deployment are for, and which half a build workflow covers.
  • Read a GitHub Actions workflow that runs on every push and builds the Windows, Android, web and iOS versions on separate machines.
  • Download the Windows, Android and web builds that a workflow run saves.
  • Add a flutter test step so the workflow runs your tests once you have written some.

Projects

What you will build.

The course has nine projects. This one matters most here.

  • Project 03

    Launchpad

    The finished app the workflow builds: from the starter you clone from GitHub for its Ninja Challenge to four platforms built on every push.

Lessons

The lessons that matter, in course order.

The Complete Flutter Course: Build Android, iOS and Web Apps has 223 lessons. This page picks out 3 of them, 29 min of video. Each lesson keeps its number in the course.

Where to start

Lesson 223 Automatic builds with GitHub Actions

Go straight to Lesson 223 if your Flutter app is already in a GitHub repository; the workflow there runs on the launchpad, but its steps suit any Flutter app. If Git is new to you, install it at Lesson 5 and clone the launchpad starter at Lesson 42 first.

3 of 223 lessons · 29 min

02 Flutter Setup and Installation 1 of 9 lessons · 1 min Git installed on Windows with the default settings, the tool every later push goes through.
  1. 5 Install Git on Windows The 64-bit installer with the default settings 1 min
08 Ninja challenge 2 - Launchpad app 1 of 5 lessons · 6 min The launchpad's starter project cloned from GitHub, with the colour codes and hints for the challenge.
  1. 42 Ninja Challenge 2: build a launchpad app Clone the starter from GitHub, colour codes and hints 6 min
25 Continuous integration with GitHub Actions 1 lesson · 22 min What CI/CD is for, then a workflow that runs on every push, builds the Windows, Android, web and iOS versions on separate GitHub machines and saves the Windows, Android and web builds, watched as it runs, with a look at how a flutter test step would run your tests.
  1. 223 Start here Automatic builds with GitHub Actions Build Windows, Android, web and iOS apps on every push 22 min

Instructors

Who teaches it.

Paulina Knop smiling, shoulder-length brown hair, wearing a black top.

Instructor, Flutter

Paulina Knop

Flutter developer and curriculum designer. Teaches the Flutter course.

Questions

Asked before starting.

Is there a Flutter course that sets up continuous integration with GitHub Actions?

The Complete Flutter Course: Build Android, iOS and Web Apps from Coding Liquids closes with it: a GitHub Actions workflow that runs on every push, builds the Windows, Android, web and iOS versions of the finished launchpad app on GitHub's machines, and keeps the Windows, Android and web builds to download. This guide picks out 3 lessons (29 minutes): that lesson and the Git steps before it. It suits developers who want automatic builds; store deployment and writing tests are not taught.

Which platforms does the workflow build?

Windows, Android, the web and iOS, each on a separate machine that GitHub provides, so the iOS build runs on a Mac even when you work on Windows. The Complete Flutter Course: Build Android, iOS and Web Apps walks through the workflow file at Lesson 223 and then watches a run, with the Windows, Android and web builds saved for download at the end.

Does the workflow also deploy the app to the stores?

No. It covers continuous integration, building on every push, and stops there; continuous deployment, which would sign the apps and send them to Google Play or the App Store, is explained as the other half of CI/CD but not set up. The Complete Flutter Course: Build Android, iOS and Web Apps teaches no store uploads, signing or release tracks, so the workflow's builds are for checking and downloading, not for users.

Will I learn to write the tests a workflow runs?

No. The Complete Flutter Course: Build Android, iOS and Web Apps shows how a flutter test step would run your tests inside the workflow, but it does not teach writing unit, widget or integration tests, so that step has nothing of yours to run until you add tests yourself. Flutter's own testing documentation is the place to learn them; the workflow from Lesson 223 is ready to run them once they exist.

Can I download the builds the workflow produces?

Yes, for Windows, Android and the web. The workflow in The Complete Flutter Course: Build Android, iOS and Web Apps saves those builds as files you can download from the run's page on GitHub, so you can try a fresh build without making it on your own machine. The iOS version is built on GitHub's Mac, which shows that it compiles, but it is not among the saved builds.

What does a CI build catch that building on my own laptop does not?

Whatever your laptop hides. A CI build starts from a clean copy of your repository on a fresh machine, so it catches files you forgot to commit, settings that exist only on your computer, and failures on a platform you never build yourself, such as iOS when you work on Windows. Running on every push also means a break is found while the change is fresh in your mind. The Complete Flutter Course: Build Android, iOS and Web Apps sets this up for the launchpad at Lesson 223.

Flutter

See the whole course.

The Complete Flutter Course: Build Android, iOS and Web Apps: 25 hours of video in 223 lessons, built around 9 projects, with lifetime access, a Certificate of Completion and a 14-day money-back guarantee.