Setting up our GitHub repository for CI
In this step, we’ll set up a GitHub repository for our TodoMVC app. We’ll use GitHub for two main actions: to set up continuous integration (CI) and have GitHub Actions run our test suite every time we push to the repository, and to serve as a public repository that we can access from our deployment servers.
For the following actions, you will need a free GitHub account. Log in to your GitHub account and create a new repository to host the app at https://github.com/new. Give it a good name, such as GenieTodoMVC
. Put in a description too if you want, then click on Create repository.
Once the GitHub repository is created, we need to configure your local Genie app to use it. Going back to your computer, in the terminal, in the app’s folder, run the following (you will need to have git
installed on your computer):
$ git init $ git add . $ git commit -m "initial commit" $ git branch -M main $ git remote add...