Create main.yml #1
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
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 |