< Return to Video

GitHub Actions - Supercharge your GitHub Flow

  • 0:00 - 0:03
    NARRATOR: Automation is key for streamlining your work processes
  • 0:03 - 0:07
    and GitHub Actions is the best way to supercharge your GitHub Workflow.
  • 0:07 - 0:08
    This enables you to create
  • 0:08 - 0:13
    custom software development life cycle workflows directly in your GitHub repository.
  • 0:13 - 0:16
    GitHub Actions is fully integrated into GitHub.
  • 0:16 - 0:19
    It's built-in from the merge box to the checks tab,
  • 0:19 - 0:20
    from the UI to the API.
  • 0:20 - 0:23
    It works the way that GitHub works.
  • 0:23 - 0:26
    Since GitHub Actions help you automate your software development workflows in
  • 0:26 - 0:30
    the same place you store code and collaborate on pull requests and issues,
  • 0:30 - 0:32
    you can discover, create,
  • 0:32 - 0:35
    and share actions to perform essentially any job that you'd like,
  • 0:35 - 0:37
    including CI and CD,
  • 0:37 - 0:40
    and then combine actions in a completely customized workflow.
  • 0:40 - 0:42
    To visualize how this can be useful,
  • 0:42 - 0:45
    let's take a quick look at the basic GitHub Flow,
  • 0:45 - 0:49
    a lightweight yet effective branch-based workflow commonly used on GitHub,
  • 0:49 - 0:51
    and then see how GitHub Actions fits in.
  • 0:51 - 0:54
    Now, when we want to make changes to our code in our GitHub Repository,
  • 0:54 - 0:58
    we branch off of main or the production branch, maker commits,
  • 0:58 - 1:00
    open up a pull request on GitHub to share our changes,
  • 1:00 - 1:05
    and then merge this branch into the main branch and then delete our feature branch.
  • 1:05 - 1:06
    Looking at the GitHub Flow,
  • 1:06 - 1:09
    where would this automation with GitHub Actions take place?
  • 1:09 - 1:12
    Well, the great thing about GitHub Actions is that you can apply
  • 1:12 - 1:14
    existing GitHub Actions or even create
  • 1:14 - 1:17
    your own GitHub Actions to essentially any stage in the GitHub Flow.
  • 1:17 - 1:19
    Do you want to include CICD?
  • 1:19 - 1:21
    Well, GitHub Actions can do that.
  • 1:21 - 1:23
    Do you want a specific automated tasks to run
  • 1:23 - 1:25
    when an issue is opened, labeled, or closed?
  • 1:25 - 1:29
    How about when a pull request is opened and you want automated reminders
  • 1:29 - 1:33
    created based on labels or reviewers from a code owners file?
  • 1:33 - 1:34
    Well, GitHub Actions enables you to create
  • 1:34 - 1:37
    these custom software development life cycle workflows
  • 1:37 - 1:39
    directly in your GitHub repository.
  • 1:39 - 1:41
    GitHub Actions are event-driven,
  • 1:41 - 1:45
    meaning that you can run a series of commands after a specified event has occurred.
  • 1:45 - 1:49
    For example, every time someone creates a pull request for a repository,
  • 1:49 - 1:52
    you can automatically run a command that executes a software testing script.
  • 1:52 - 1:56
    Instead of using CI or CD integrations, with GitHub Actions,
  • 1:56 - 1:59
    you can build end-to-end CI and CD capabilities,
  • 1:59 - 2:00
    and yes, you probably guessed it,
  • 2:00 - 2:02
    directly in your GitHub Repository.
  • 2:02 - 2:05
    This gives you the ultimate freedom to customize how your actions
  • 2:05 - 2:09
    work and automate tasks all along your software development life cycle.
  • 2:09 - 2:12
    Now that we can see where we can apply automation
  • 2:12 - 2:15
    using GitHub Actions within our software development workflow,
  • 2:15 - 2:18
    let's take a closer look into how GitHub Actions actually work.
  • 2:18 - 2:23
    GitHub Actions use YAML syntax to define the events, jobs, and steps.
  • 2:23 - 2:24
    These YAML files are stored in
  • 2:24 - 2:28
    your code repository in a directory called .github/workflows.
  • 2:28 - 2:32
    An event automatically triggers the workflow which contains a job.
  • 2:32 - 2:35
    The job then uses steps to control the order in which actions are run.
  • 2:35 - 2:39
    These actions are the commands that automate your software testing.
  • 2:39 - 2:40
    In this example workflow,
  • 2:40 - 2:44
    it automatically triggers a series of commands whenever code is pushed.
  • 2:44 - 2:48
    GitHub Actions checks out the pushed code, installs the software dependencies,
  • 2:48 - 2:51
    and runs bats-v to output the software version.
  • 2:51 - 2:53
    With GitHub Actions, you can also build, test,
  • 2:53 - 2:56
    and publish across multiple operating systems,
  • 2:56 - 2:59
    platforms, and languages all within the same workflow,
  • 2:59 - 3:03
    and then see the status checks displayed within your pull request.
  • 3:03 - 3:04
    With GitHub Actions,
  • 3:04 - 3:07
    you have the ability to create your own actions or leverage
  • 3:07 - 3:11
    these pre-built actions by the community found on the GitHub marketplace.
  • 3:11 - 3:15
    So if you've been itching to customize and automate your workflow from idea to production,
  • 3:15 - 3:17
    jump into GitHub Actions today and explore
  • 3:17 - 3:21
    the amazing community actions in the GitHub marketplace
Title:
GitHub Actions - Supercharge your GitHub Flow
Description:

more » « less
Video Language:
English
Team:
BYU Continuing Education
Project:
CS-204 (BYUO)
Duration:
03:20

English subtitles

Revisions