GitHub Actions

Continuous Integration with GitHub Actions

Clone Git Repo

In this lesson, we’ll migrate the Solar System application source code from GitLab to GitHub. Once imported, you can start building GitHub Actions workflows for CI/CD.

Step 1: Copy the GitLab Repository URL

On GitLab, navigate to the Solar-System project and copy its HTTPS clone URL:

The image shows a GitLab repository page for a project named "Solar-System," displaying files, commit history, and project details.

Step 2: Import the Repository into GitHub

  1. Go to GitHub’s import interface at https://github.com/new/import.
  2. Paste the GitLab URL into the Your old repository’s clone URL field.
  3. Set the Owner and enter solar-system as the Repository Name.
  4. Choose Public visibility.
  5. Click Begin import.

The image shows a GitHub interface for importing a project from another version control system, with fields for entering the repository URL and details for the new repository. Options for setting the repository as public or private are also visible.

Note

Large repositories may take several minutes to import. You can monitor progress on the same page.

Step 3: Verify the Imported Files

After the import completes, navigate to your new solar-system repository. Confirm that all files—such as README.md, Dockerfile, and JavaScript source files—have been migrated successfully:

The image shows a GitHub repository page for a project named "solar-system," displaying a list of files and directories along with commit messages and timestamps. The repository includes files like `README.md`, `Dockerfile`, and several JavaScript files.

Quick Reference

StepActionLocation
1Copy GitLab clone URLGitLab project overview
2Import repository via GitHub UIgithub.com/new/import
3Verify files in new GitHub repoGitHub repository main page

Next Steps

With your code now on GitHub, you can:

  • Create a workflow file in .github/workflows/
  • Define jobs for linting, testing, and building
  • Trigger CI/CD on each push or pull request

Watch Video

Watch video content

Previous
Understanding DevOps Pipeline