Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
Adding the main.yml which will automatically do the tests every push
  • Loading branch information
MichelRiff authored Jan 22, 2025
1 parent eb855e5 commit 0691824
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 0691824

Please sign in to comment.