richk21 / skills-test-with-actions

My clone repository

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Test with Actions

Create workflows that enable you to use Continuous Integration (CI) for your projects.

Step 2: Fix the test

Great job adding the templated workflow! 🎉

Adding that file to this branch is enough for GitHub Actions to begin running CI on your repository.

When a GitHub Actions workflow is running, you should see some checks in progress, like the screenshot below.

checks in progress in a merge box

You can follow along as GitHub Actions runs your job by going to the Actions tab or by clicking on "Details" in the merge box below.

When the tests finish, you'll see a red X ❌ or a green check mark ✔️ in the merge box. At that point, you'll have access to logs for the build job and its associated steps.

By looking at the logs, can you identify which tests failed? To find it, go to one of the failed builds and scrolling through the log. Look for a section that lists all the unit tests. We're looking for the name of the test with an "x".

screenshot of a sample build log with the names of the tests blurred out

If the checks don't appear or if the checks are stuck in progress, there's a few things you can do to try and trigger them:

  • Refresh the page, it's possible the workflow ran and the page just hasn't been updated with that change.
  • Try making a commit on this branch. Our workflow is triggered with a push event, and committing to this branch will result in a new push.
  • Edit the workflow file on GitHub and ensure there are no red lines indicating a syntax problem.

⌨️ Activity: Fix the test

  1. Update the code in the ci branch to get the test to pass. You need to look something like this:
    _underscore_
  2. Commit changes.
  3. Wait about 20 seconds then refresh this page (the one you're following instructions from). GitHub Actions will automatically update to the next step.

Get help: Post in our discussion boardReview the GitHub status page

© 2023 GitHub • Code of ConductMIT License

About

My clone repository

License:MIT License