-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding the main.yml which will automatically do the tests every push
- Loading branch information
1 parent
eb855e5
commit 0691824
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |