Skip to content

v1.2.1: Merge pull request #6 from RndmCodeGuy20/LC-04-unit-tests

Choose a tag to compare

@RndmCodeGuy20 RndmCodeGuy20 released this 22 Jan 07:07
· 39 commits to main since this release
2cc65cb

This commit adds a GitHub Actions workflow to automate the retrieval of the daily LeetCode problem. Three jobs are defined in the workflow:

  1. build-and-setup-node:

    • Checks out the repository.
    • Sets up Node.js environment (Node.js version 16).
    • Installs project dependencies using npm ci.
  2. get-problem:

    • Depends on the completion of the build-and-setup-node job.
    • Sets up Node.js environment (Node.js version 16).
    • Runs the script to fetch the daily LeetCode problem.
  3. commit:

    • Depends on the completion of the get-problem job.
    • Checks out the repository.
    • Configures Git user details.
    • Commits the changes with a standardized message indicating the addition of today's daily LeetCode question.
    • Pushes the changes back to the repository.

This workflow is triggered daily at 1:00 AM UTC, ensuring the automated retrieval of the LeetCode problem and the documentation of the change in the repository.