All right, so let's test out this workflow.
So we're going to begin on this first step right here.
We're going to make changes to some service inside of our project.
In this case, the changes don't really matter all that much.
I just want to have some change we can commit.
But how about we try out going into our OTT service by me?
The index use violence either.
And how about right at the very start of our start function?
Let's just add in a little console log of starting up.
That's it.
That's the change we want to commit.
So I got to say this file and close it out.
That's step one.
And I can move on to step two, where we are going to commit that code to a new branch.
Back over at my terminal.
I'm going to check out a new branch with Get Checkout's.
Ashby.
And I'll give this branch a very simple name of Deb short for development.
Once I've created that new branch, I'll check my status.
There's the file that we just changed.
We're going to add that and committed with the message of added startup message.
So we just change or committed those changes to a new branch.
It was a branch that was not the master branch.
That's a very critical part here.
We're not going to commit directly to the master branch.
Now we're going to push that branch up to get hub, so to do so, we'll do a get push.
Origin.
Ken looks good.
Looks like we created a new branch.
On GitHub.
So get help as now receive that updated branch.
We're now going to log onto get Hub.
We're going to take a look at a repository and we're going to create a pull request manually to merge
that branch into our master.
So back at my GitHub repo.
I'm going to go to the Apollo request tab.
I can either click on this, compare and pull request button right here for Dev or I can create the
Met police request manually.
I'm going to show how to create it manually because we don't always see this yellow box appear right
here.
So I can either click on the first screen, one in this case and go to new play request.
I'm then going to be prompted with what I am taking code from or which branch I'm going from, which
branch I'm merging it to.
So I want to go from my def branch and merge that into M..
I should see in these dropdown master.
And then def.
Well, then click on Create Polari Quest.
We get prompted to add in a message, so a title for the play request itself.
And then some description right here of the changes that we are making.
So in theory, we would want to put in some description of what just happened to her, why I'm trying
to merge this code into M..
I might put in a description here that says something like it would be nice if we had a.
Message whenever the service started up.
And I'll create the play request.
So once I create that play request, it triggers a new event on GitHub and that event should trigger
the get help action or that workflow we just put together.
So after a moment or two, you should see the box down here start to light up or change as you go over
to yellow.
And I should say something like some checks haven't completed yet.
So that is our GitHub action being executed.
In theory, it's going to run our tests and give us some output on those tests right here inside this
window to get more information about what's going on.
We can click on details on the right.
And it's going to take us to some information about the running job in this case, it has is going through
essentially the script we just put together.
You can see that right now it is running ECD into off and install in NPM run test command.
So after it has installed all those dependencies, it's going to run all of our tests and hopefully
they all pass, if they pass, then this step will be resolved successfully.
Otherwise, if they fail for some reason.
Well, the overall test suite is going to fail and we'll be told about that back inside of our Pullo
request.
So looks like in this case, all my tests ran successfully.
So I get a green checkbox right there, green checkbox right here to say everything looks good.
So if I go back over to the conversation tab.
Which is essentially the main pillar request tab.
I'll now see something it says All checks have passed.
So that'll be assigned to you and I as developers that the changes I just made didn't break anything
inside of our app.
And we should be safe to now merge this poll request into our master branch so I could click on merge
request right there.
But I'm not going to.
Right now, I want to show you what would happen if one of our tests failed for some reason as well.
Let's take a pause right here.
Welcome back.
Nice video.
We're gonna take a look at what happens if one of our tests, failure fail during this pullet request
process.