VOOZH about

URL: https://thenewstack.io/8-github-actions-for-setting-up-your-ci-cd-pipelines/

⇱ 8 GitHub Actions for Setting Up Your CI/CD Pipelines - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2022-12-05 08:05:59
8 GitHub Actions for Setting Up Your CI/CD Pipelines
contributed,sponsor-foresight,sponsored,sponsored-post-contributed,
CI/CD

8 GitHub Actions for Setting Up Your CI/CD Pipelines

You can trigger actions to run on-demand workflows by your events in a GitHub repository.
Dec 5th, 2022 8:05am by Ismail Egilmez
👁 Featued image for: 8 GitHub Actions for Setting Up Your CI/CD Pipelines
Feature image via Pixabay
Foresight sponsored this post.

Many individuals, organizations, and open source projects moved their CI/CD pipelines to GitHub since GitHub Actions was announced in 2018. They enable users to automate workflows and create various automation, build development cycles and, of course, create CI/CD pipelines.

GitHub actions are event-driven, and this is perhaps the best part of it. You can trigger actions to run on-demand workflows by your events in a GitHub repository.

These eight GitHub actions can make an impact on organizations getting started with their CI/CD pipelines.

1. Foresight

You can monitor your GitHub Actions workflows and tests by setting up Foresight’s GitHub application. It lets you monitor your GitHub Actions workflows, tests and untested code changes on a single dashboard. It visualizes your running and completed GitHub Actions workflows by status, duration and cost.

1.1. Foresight’s Workflow Kit Action

👁 Image

It tracks and monitors the resource metrics of your GitHub Action workflow runs. If the run is triggered via a pull request, it will create a comment on the connected PR with the results and/or publish the results to the job summary. The action collects the following metrics:

  • CPU load (user and system) in percentage.
  • Memory usage (used and free) in MB.
  • Network I/O (receive and transmit) in MB.
  • Disk I/O (read and write) in MB.

1.2. Foresight’s Test Kit Action

👁 Image

Foresight’s Test Kit analyzes test and/or coverage results. It integrates with your GitHub Actions pipelines.

It makes it simple to see failed tests, visualize the performance of your tests and see their logs. It is the fastest way to access failed test results in your workflow runs. It correlates the changes to the codebase with the test coverage reports to determine how much of the changes are covered by the tests.

Visit runforesight.com for more information.

2. Setup

👁 Image

You can download and set up a requested version of the runtime with most of the setup actions. With the programming language of your choice, there are a lot of actions called Setup which allow you to set up your GitHub workflows.

Here are some popular ones: Go, Java JDK, .Net Core SDK, Node.js, Python.

3. Automerge

👁 Image

Merge pull requests adds an automerge label on the pull requests before running its tasks. It merges the PRs automatically when they are ready.

This action looks at the base branch and gets the changes when there is a change. Then when the PR is ready to go, it automatically merges the PR.

The merge pull requests action does not do the cleanup, meaning that the branch created by this action won’t be deleted after the successful merge. That’s why you need to use another deletion action for that purpose.

Foresight lets you monitor your GitHub Actions workflows, tests, and untested code changes on a single dashboard. It visualizes your GitHub Actions workflows by status, duration, and cost. It helps optimize build duration, enable more frequent deployments, boost productivity, and lower CI costs.
Learn More
The latest from Foresight

4. Cache

👁 Image

You don’t have to download frequently used dependencies using the Cache action. You can cache dependencies and improve your workflow execution time with its outputs.

If you are cost-sensitive when building your CI/CD pipeline, then Cache helps save money and free up network capacity.

5. Create a Pull Request

👁 Image

You can use create a pull request for changes to your repository.

When used with other actions, it makes it easier to add, remove or modify files to your repositories. This action creates a pull request by automatically committing changes to a new branch.

6. Checkout

👁 Image

You can download your Git repository to your local environment using Checkout. It lets your workflow access your Git repository locally and checks out your target repository to run GitHub Actions on top of it.

Many possibilities are available with Checkout. For example, using the built-in token, you can push a commit. Or you can fetch the history for the defined tags and branches if you wish. See the scenarios on GitHub Marketplace.

7. Upload Artifact

👁 Image

Upload Artifact automates sharing data between jobs and enables you to upload your artifacts from your workflow, allowing you to share data between jobs and store data once a workflow is complete.

You should be cautious if your workflow uploads a high number of artifacts in a short period of time, though. You may be exceeding usage and see them blocked.

You can reduce the number of HTTP calls made during artifact upload by zipping or archiving the contents of your artifact before an upload starts to overcome this small hurdle.

8. Docker Build and Push Action

👁 Image

You can create a Docker image by using the Docker Build and Push Action and push it into a desired registry like GitHub Docker Hub, Docker Registry, Amazon Elastic Container Registry (ECR) or Google Container Registry (GCR).

This action is mostly used to pass data between jobs in a workflow, but definitely you can do a lot of things with it. You can copy Docker images between registries without changing the commit ID. You can handle tags and labels. You can also build images on multiple platforms. If you want to see your build results on Docker, you can export images as well.

Summing Up

Unlike some others, GitHub Actions is an invaluable tool when it comes to automation. The GitHub Marketplace is very rich. There are many actions available for doing almost anything.

Lastly, I want to mention the need to monitor CI pipelines. When a workflow, build, job or test fails, we tend to rerun the whole workflow from the start, try to reproduce the bug locally, or dig into the log piles. Troubleshooting failures and latencies become easy with a CI monitoring tool that visualizes GitHub Actions workflows by status, duration, and cost, and gives insights about performance.

Foresight lets you monitor your GitHub Actions workflows, tests, and untested code changes on a single dashboard. It visualizes your GitHub Actions workflows by status, duration, and cost. It helps optimize build duration, enable more frequent deployments, boost productivity, and lower CI costs.
Learn More
The latest from Foresight
TRENDING STORIES
Ismail Egilmez is business development manager at Thundra, where he handles content marketing, outbound sales, partners and alliances. He is an AWS Community Builder and cloud enthusiast.
Read more from Ismail Egilmez
Foresight sponsored this post.
SHARE THIS STORY
TRENDING STORIES
Amazon Web Services and Foresight are sponsors of The New Stack.
TNS owner Insight Partners is an investor in: Pragma, Docker.
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.