Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
nawaz1991 committed Dec 4, 2023
1 parent dc05034 commit 3b5f674
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/common-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,20 @@ jobs:
with:
workflowPreset: 'build-test-and-example'

- name: Run Unit Tests
uses: lukka/run-cmake@v10
id: runcmake
with:
testPresets: 'run-oasvalidator-unittests'

- name: Run Example
run: |
if [ "${{ runner.os }}" == "Windows" ]; then
if ($env:RUNNER_OS -eq "Windows") {
build/release/example/oasvalidator-example.exe
else
} else {
build/release/example/oasvalidator-example
fi
}
- name: Run Unit Tests
run: |
if [ "${{ runner.os }}" == "Windows" ]; then
build/release/test/unittest/oasvalidator-unittests.exe
else
build/release/test/unittest/oasvalidator-unittests
fi
- name: Run Performance Tests
run: |
Expand Down
2 changes: 1 addition & 1 deletion CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
],
"testPresets": [
{
"name": "test-oasvalidator",
"name": "run-oasvalidator-unittests",
"displayName": "Test oasvalidator",
"configurePreset": "release",
"output": {
Expand Down

0 comments on commit 3b5f674

Please sign in to comment.