From 42d501655ebe418a5a63459fd50424df3a28a71c Mon Sep 17 00:00:00 2001 From: Ethan Harris Date: Wed, 24 Sep 2025 12:15:00 -0700 Subject: [PATCH 1/3] created a workflow upon push and pull request closes #2 --- .github/workflows/compile.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/compile.yml diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml new file mode 100644 index 0000000..5b0eeb9 --- /dev/null +++ b/.github/workflows/compile.yml @@ -0,0 +1,14 @@ +name: compile + +on: + pull_request: + branches: [ main ] + push: + branches: [ devops ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - run: g++ -std=c++17 main.cpp -o app From 523551f185e30bf3ed1a9a61fbf9e06b30929118 Mon Sep 17 00:00:00 2001 From: Ethan Harris Date: Wed, 24 Sep 2025 12:18:36 -0700 Subject: [PATCH 2/3] added status badge closes #2 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index bbcf55a..4813a9d 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # autovalidate - +[![compile](https://github.com/eharris11/autovalidate/actions/workflows/compile.yml/badge.svg?branch=devops)](https://github.com/eharris11/autovalidate/actions/workflows/compile.yml) I like that app too! This repo is compatible with the [cpp-container docker container](https://github.com/ChicoState/cpp-container). \ No newline at end of file From 0e7446ec25b5213aa9fbe1bf270b648b16033c07 Mon Sep 17 00:00:00 2001 From: Ethan Harris Date: Wed, 24 Sep 2025 12:28:59 -0700 Subject: [PATCH 3/3] changed the branch using the badge to main --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4813a9d..eecc03c 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # autovalidate -[![compile](https://github.com/eharris11/autovalidate/actions/workflows/compile.yml/badge.svg?branch=devops)](https://github.com/eharris11/autovalidate/actions/workflows/compile.yml) +[![compile](https://github.com/eharris11/autovalidate/actions/workflows/compile.yml/badge.svg?branch=main)](https://github.com/eharris11/autovalidate/actions/workflows/compile.yml) I like that app too! This repo is compatible with the [cpp-container docker container](https://github.com/ChicoState/cpp-container). \ No newline at end of file