Skip to content

Create main.yml

Create main.yml #1

Workflow file for this run

name: C++ Test Project
on:
push:

Check failure on line 3 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/main.yml

Invalid workflow file

You have an error in your yaml syntax on line 3
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