Skip to content

Commit

Permalink
Add unit test ci
Browse files Browse the repository at this point in the history
  • Loading branch information
firejox committed Apr 18, 2024
1 parent df982fb commit 84fb9f8
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
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

0 comments on commit 84fb9f8

Please sign in to comment.