How to use GitHub Actions

Опубликовано: 30 Январь 2025
на канале: London App Developer
19,654
149

Explanation of how to use GitHub Actions to setup a basic CI/CD workflow based on GitLab Flow.

Tutorial in written form: https://londonappdeveloper.com/2021/0...

Resources:
Starter Project: https://github.com/LondonAppDeveloper...
GitLab Flow: https://docs.gitlab.com/ee/topics/git...
Preparing a Django app for deploying using Docker:    • Prepare a Django app for Deployment u...  
GitHub Actions Job Runners: https://docs.github.com/en/actions/re...
GitHub Checkout Action: https://github.com/actions/checkout
Full completed source code: https://github.com/LondonAppDeveloper...

00:00 - Intro
01:20 - Workflow
03:47 - Requirements
04:14 - Cloning project to local machine
05:50 - Create workflow configuration
07:27 - Define when the workflow runs
08:01 - Define the jobs for our workflow
13:15 - Commit and push changes to GitHub
15:00 - Creating real jobs to do real testing
16:18 - Adding Docker Compose wrapper
16:54 - Command for running the Django test
17:15 - Adding linting job using Flake8
21:22 - Configure GitHub Actions for the most efficient use of free minutes
24:34 - Add deployment jobs to our jobs list
30:10 - Run through of a real-life scenario (i.e. creating a feature)
33:11 - About how to configure your project to require tests to pass to merge requests
34:35 - Fixing broken view
37:20 - Create production branch
38:41 - Deploying to production