Ruby on Rails Continuous Integration with Github Actions

preview_player
Показать описание

Continuous Integration is the process of testing code every time changes are pushed to version control, such as git. The CI process makes sure that new code doesn't break other features when it gets merged. You can setup GitHub to require that tests have passed on a Pull Request before

GitHub Actions is a new feature from GitHub that allows you to define custom workflows to run against your code. In this video, we're going to use GitHub Actions to continuously integrate our Ruby on Rails code every git push to make sure our tests pass.

Setting up GitHub Actions can seem a little daunting, but we've made a solid guide that you can follow and make changes to. Behind the scenes, it's using Docker to spin up an environment that you can use. It builds an Ubuntu, MacOS, or Windows environment and spins up other services like PostgreSQL, MySQL, MongoDB, Redis, ElasticSearch, or any other service you need. Then it checks out your code, installs dependencies, compiles your code, and runs tests.

The results of these tests are stored by GitHub against your commit so you know exactly which commit(s) broke the tests.
Рекомендации по теме
Комментарии
Автор

Perfect introduction to GH actions. Straight to the point.

lesalemome
Автор

Amazing, i think this video is under rated, great job!

damuz
Автор

Best introduction so far!!! Thanks! It's very complete

kieranklaassen
Автор

This is a fantastic video, so short and so full of great information. Thank you!

rorycawley
Автор

Thanks!! Everything's working as expected

jg
Автор

Thank you, that's perfect But what about deploying steps by using Github Actions!

astm
Автор

Thank you very much! Got it right moment... Could you point to those options docs please?

aruprakshit
Автор

And what about system tests (capybara)? Is there a way to run them?

wotok
Автор

Hey! When I merge my dev to qa, the dev workflow is also getting triggered which I don't want to. Can you help me over on this?

on:
push:
branches:
- develop

thrinadhkumpatla
Автор

hi, is this content gonna be available after the stream?

junior
Автор

This is nice. Please provide same code with mysql.

manomoybiswas