This repo's is created as extra labs for the GitHub Actions Training for the Actions Certification Exam by Xebia. You can find the trainings here: xebia.com/academy. With the labs in this repo (check the labs
folder) you can practice and get hands-on for the exam to really let the information from the training sync in. Knowing where certain things in the UI are located, and how to solve an example question from real world experience is a great way to prepare for the exam.
Here is an overview of the labs:
- Lab 1: Create a workflow that comments on an issue
- Creating an issue comment using the GitHub CLI
- Creating an issue comment using the
actions/github-script@v6
action - Creating an issue comment only when the issue is labeled with
bug
- Using notifications effectively
- Lab 2: Create a CI workflow
- Create a CI workflow that runs on every push to repo
- Execute the CI steps for the application in this repository
- Implement best practices for GitHub Actions
- Use SHA hashes for the actions you use
- Use the
actions/cache
action to cache dependencies - Specify the node version to use
- Specify a matrix job to run the CI steps for multiple versions of node
- Show the test results from the unit tests in the GitHub UI
- Upload a Docker image to GitHub Packages (Container Registry)
- Create a release for the repository
The application in this repo is a simple Node.js application that provides a CRUD interface for maintaining a list of TODO items. It is designed to run in GitHub Codespaces.
To get started, you need to have a GitHub account and access to GitHub Codespaces.
- Fork this repository to your own GitHub account.
- Open this repository in GitHub Codespaces. This will create a new Codespace and start the environment as specified in the
.devcontainer/devcontainer.json
file. - Once the Codespace is ready, open a terminal and navigate to the project root directory.
- Install the project dependencies by running
npm install
. - Start the application by running
npm start
.
The application will start and listen on port 3000. You can access the application by opening a new browser tab and navigating to localhost:3000
.
This project includes unit tests for the TodoController
and TodoModel
classes. To run the tests, use the following command:
npm test
Contributions are welcome. Please submit a pull request with your changes.
This project is licensed under the MIT License. See the LICENSE
file for more details.