Skip to content

Commit

Permalink
Revert "test updates"
Browse files Browse the repository at this point in the history
This reverts commit ee34e36.
  • Loading branch information
nawaz1991 committed Dec 4, 2023
1 parent ee34e36 commit dc05034
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 32 deletions.
26 changes: 25 additions & 1 deletion .github/workflows/common-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,28 @@ jobs:
uses: lukka/run-cmake@v10
id: runcmake
with:
workflowPreset: 'build-test-and-example'
workflowPreset: 'build-test-and-example'

- name: Run Example
run: |
if [ "${{ runner.os }}" == "Windows" ]; then
build/release/example/oasvalidator-example.exe
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: |
if [ "${{ runner.os }}" == "Windows" ]; then
build/release/test/perftest/oasvalidator-perftests.exe
else
build/release/test/perftest/oasvalidator-perftests
fi
16 changes: 1 addition & 15 deletions .github/workflows/linux-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,4 @@ jobs:
linux-build-and-test:
uses: ./.github/workflows/common-build.yml
with:
os: ubuntu-latest

Run-Example:
runs-on: ubuntu-latest
needs: linux-build-and-test
steps:
- name: Run Example
run: build/example/Release/oasvalidator-example

Run-Perf-Tests:
runs-on: ubuntu-latest
needs: linux-build-and-test
steps:
- name: Run Perf Tests
run: build/release/test/perftest/oasvalidator-perftests
os: ubuntu-latest
17 changes: 1 addition & 16 deletions .github/workflows/windows-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,4 @@ jobs:
windows-build-and-test:
uses: ./.github/workflows/common-build.yml
with:
os: windows-latest


Run-Example:
runs-on: windows-latest
needs: windows-build-and-test
steps:
- name: Run Example
run: build/release/example/oasvalidator-example.exe

Run-Perf-Tests:
runs-on: windows-latest
needs: windows-build-and-test
steps:
- name: Run Perf Tests
run: build/release/test/perftest/oasvalidator-perftests.exe
os: windows-latest

0 comments on commit dc05034

Please sign in to comment.