Welcome to the repository for the "Automating Workflows with GitHub Actions" workshop! This repository contains all the materials and examples to help you get started with GitHub Actions, including the workflows we'll create and additional resources for you to practice.
In this workshop, you'll learn how to:
- Understand the basics of GitHub Actions.
- Set up and run workflows to automate tasks.
- Create an automated test workflow for C programs.
- Complete a task to implement a coding style checker as a workflow.
compile.yml: An example GitHub Actions workflow for compiling with a make file
- A GitHub account.
- Basic knowledge of Git, C programming and bash
- A repository to practice creating workflows.
-
Create the following structure
.github/workflows: This is where GitHub Actions workflows are stored. -
Start adding your .yml files:
-
Push Changes to Your Repository:
Create a workflow that checks for memory leak issues in your C programs:
- Set up a new workflow file in
.github/workflows, e.g.,memory-leak.yml. - Use a tool like
valgrindto check the memory leaks. - Ensure the workflow runs on
pull_requestevents. - Use grep to get the valgrind output