From 0691824bda6d0565d38647c1f9baba2ba2dadda4 Mon Sep 17 00:00:00 2001 From: Michka Riff <146001004+MichelRiff@users.noreply.github.com> Date: Wed, 22 Jan 2025 09:37:02 +0100 Subject: [PATCH] Create main.yml Adding the main.yml which will automatically do the tests every push --- .github/workflows/main.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..c31d544 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,26 @@ +name: C++ Test Project +on: + push: + branches: [ main ] + +jobs: + tests: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Setup Node + uses: actions/setup-node@v2 + with: + node-version: 20 + + - name: Install Build Tools + run: sudo apt-get update && sudo apt-get install -y build-essential + + - name: Program verification Tests + run: | + cd src + g++ -std=c++11 -o main_verification main_verification.cpp verification.cpp -Wall -Werror + ./main_verification