Skip to Main Content
GitHub Actions Cookbook
book

GitHub Actions Cookbook

by Michael Kaufmann
April 2024
Intermediate to advanced content levelIntermediate to advanced
250 pages
5h 7m
English
Packt Publishing
Content preview from GitHub Actions Cookbook

6

Build and Validate Your Code

In this chapter, you will learn how to use GitHub Actions to build and validate code, validate changes in pull requests, and keep your dependencies up to date. You will learn where to store build output and how to optimize your workflow runs with caching.

We will cover the following recipes:

  • Building and testing your code
  • Building different versions using a matrix
  • Informing the user on details of your build and test results
  • Finding security vulnerabilities with CodeQL
  • Creating a release and publishing the package
  • Versioning your packages
  • Generating and using software bills of materials (SBOMs)
  • Using caching in workflows

Technical requirements

For this chapter, you will need an up-to-date version of NodeJS and ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

GitHub Actions in Action

GitHub Actions in Action

Michael Kaufmann, Marcel de Vries, Rob Bos
AWS Cookbook

AWS Cookbook

John Culkin, Mike Zazon

Publisher Resources

ISBN: 9781835468944Supplemental Content