From 2a5fc5bad9f84a10c25b03651809451ec2835527 Mon Sep 17 00:00:00 2001 From: Jay Ortiz <40275416+impxcts@users.noreply.github.com> Date: Wed, 18 Feb 2026 11:13:28 -0800 Subject: [PATCH 1/3] Updated main.cpp added a check after taking in the first input from the user. This early check will exit if the user says that they are listening to "nothing" at the start rather than continuing regardless of what the user says. --- main.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index d9884f9..60aff01 100644 --- a/main.cpp +++ b/main.cpp @@ -21,6 +21,9 @@ int main(){ pick = rand() % VALIDATION.size(); cout << "What are you listening to?\n"; getline(cin,input); + if(input == "nothing") { + return 1; + } transform(input.begin(), input.end(), input.begin(), [](unsigned char c){ return std::tolower(c); }); cout << VALIDATION[pick] << "! Let's listen to more\n"; @@ -33,4 +36,4 @@ int main(){ }while( input != "nothing" ); return 0; -} \ No newline at end of file +} From cc719c8a4d1337ab274cc30d578ac499037733e8 Mon Sep 17 00:00:00 2001 From: Jay Ortiz <40275416+impxcts@users.noreply.github.com> Date: Wed, 18 Feb 2026 11:17:55 -0800 Subject: [PATCH 2/3] Add algorithm header to main.cpp Brought to my attention, I needed to include the header "#include " to fix a compiling issue with "transform()" --- main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/main.cpp b/main.cpp index 60aff01..fc4d8b5 100644 --- a/main.cpp +++ b/main.cpp @@ -3,6 +3,7 @@ #include #include #include +#include using std::cout; using std::cin; From 8e4841d1b2fe01734de8ad9e04644fc49f24e630 Mon Sep 17 00:00:00 2001 From: Jay Ortiz <40275416+impxcts@users.noreply.github.com> Date: Wed, 18 Feb 2026 11:26:11 -0800 Subject: [PATCH 3/3] implementation of CI workflow called "compile" Added a CI work flow that builds the application in an Ubuntu environment with the command: g++ -std=c++17 main.cpp It is triggered to run whenever a pull request is made for the main branch or any new commits have been pushed to a branch called "devops." --- compile.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 compile.yml diff --git a/compile.yml b/compile.yml new file mode 100644 index 0000000..ff090ba --- /dev/null +++ b/compile.yml @@ -0,0 +1,23 @@ +name: Build C++ + +on: + push: + branches: "**" + pull_request: + branches: [ main, devops] + +jobs: + install: + runs-on: ubuntu-latest + steps: + - name: Install dependencies + run: | + sudo apt-get update + sudo apt-get install -y -f build-essential g++ cmake + build: + needs: install + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Build project + run: g++ -std=c++17 main.cpp