4️⃣Pushing Changes

Pushing Changes

In order to be able to submit your solution, you need to push your work up to the main branch of your repository.

To do this, please run the following commands inside the directory of the repo you cloned locally:

git add *
git commit -m "Commit message here"
git push

If your repo is in GitHub, You may also commit and push your changes using a GitHub GUI, such as Github Desktop or Sourcetree.

Note that you can commit in small chunks if you like as you can push one or more commits to your repo.

You may also push your changes to a separate branch, but be aware that each branch you create must be merged to main before you submit your solution, as we run our analysis on your code that is in the main branch of your repo.

GitHub Actions

Each time you push a new commit to your GitHub repo, a GitHub Action will automatically run that builds and tests your solution against all the unit test cases inside your repo.

You can then view the result of the build directly in your GitHub repo:

You can also build and test your solution locally. Your repo's README and .github/workflows/*.yml file will contain the commands that you need to execute to run your solution locally.

GitLab CI/CD

Each time you push a new commit to your GitLab repo, a GitLab CI/CD job will automatically run that builds and tests your solution against all the unit/integration test cases inside your repo.

You can then view the result of the build directly in your GitHub repo:

You can also build and test your solution locally. Your repo's README and .gitlab-ci.yml file will contain the commands that you need to execute to run your solution locally.

Last updated