Skip to content

Commit

Permalink
add test CI
Browse files Browse the repository at this point in the history
  • Loading branch information
pit-ray committed Feb 12, 2024
1 parent 68bb834 commit 24f0af6
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 1 deletion.
54 changes: 54 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: test

on:
push:
branches: [ main ]
tags:
- v*.*.*
- test*
paths:
- '!README.md'
- '!CONTRIBUTING.md'
- '!docs/**'
- 'include/**'
- 'demo/**'
- '.github/**'
- 'tests/**'

pull_request:
branches: [ main ]
paths:
- '!README.md'
- '!CONTRIBUTING.md'
- '!docs/**'
- 'include/**'
- 'demo/**'
- '.github/**'
- 'tests/**'

env:
BUILD_TYPE: Debug

jobs:
test-on-Windows:
runs-on: windows-2022

defaults:
run:
shell: powershell

steps:
- uses: actions/checkout@v2

- uses: ilammy/msvc-dev-cmd@v1
with:
arch: x64

- name: Configure CMake
run: cmake -B build_test tests

- name: Build
run: cmake --build build_test --config ${{env.BUILD_TYPE}}

- name: Test
run: ctest -C ${{env.BUILD_TYPE}} --test-dir build_test --output-on-failure
2 changes: 1 addition & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:
- 'tests/**'

pull_request:
branches: [ master ]
branches: [ main ]
paths:
- '!README.md'
- '!CONTRIBUTING.md'
Expand Down

0 comments on commit 24f0af6

Please sign in to comment.