Skip to content

Add unit test ci

Add unit test ci #1

Workflow file for this run

name: Unit Test
on:
push:
paths-ignore:
- '**/README.md'
pull_request:
branches:
- main
paths-ignore:
- '**/README.md'
workflow_dispatch:
env:
BUILD_TYPE: Release
jobs:
build_and_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -D CMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build
run: cmake --build ${{github.workspace}}/build
- name: Test
run: cmake --build ${{github.workspace}}/build --target test