-
Notifications
You must be signed in to change notification settings - Fork 0
23 lines (19 loc) · 832 Bytes
/
Copy pathtest.yml
File metadata and controls
23 lines (19 loc) · 832 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
name: C++ Test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build-and-test:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Build tests
run: |
if (-not (Test-Path build)) { New-Item -ItemType Directory -Path build -Force | Out-Null }
g++ -std=c++17 -I. src/executor/executor.cpp src/lexer/Lexer.cpp src/parser/parser_core.cpp src/parser/parser_statement.cpp src/parser/parser_expression.cpp src/parser/parser_block.cpp src/interpreter/Interpreter.cpp src/scope/Scope.cpp src/utility/utility.cpp tests/src/runTests.cpp -o build/run_tests.exe
shell: pwsh
- name: Run tests
run: ./build/run_tests.exe