Skip to content

Add github workflow - Test #20

Add github workflow - Test

Add github workflow - Test #20

Workflow file for this run

name: test
on:
push:
branches:
- main
pull_request:
jobs:
test-unix:
runs-on: ubuntu-latest
steps:
- name: Git clone the repository
uses: actions/checkout@v3
- name: pre-build
run: |
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
- name: build
run: |
cd build
cmake --build .
- name: test
run: |
cd build
./stockprice
test-windows:
runs-on: windows-latest
steps:
- name: Git clone the repository
uses: actions/checkout@v3
- name: pre-build
run: |
mkdir build
cd build
cmake ..
shell: pwsh
- name: build
run: |
cd build
cmake --build . --config Release
shell: pwsh
- name: list Release
run: |
cd build
cd Release
ls
- name: test
run: |
.\build\Release\stockprice.exe
shell: pwsh