From dc050344d590d7e02c0dc206e161ce33b0d5b17b Mon Sep 17 00:00:00 2001 From: Muhammad Nawaz Date: Mon, 4 Dec 2023 20:19:26 +0500 Subject: [PATCH] Revert "test updates" This reverts commit ee34e365d11a81de8f31df9d2b406b331a3bda90. --- .github/workflows/common-build.yml | 26 +++++++++++++++++++++++++- .github/workflows/linux-build.yml | 16 +--------------- .github/workflows/windows-build.yml | 17 +---------------- 3 files changed, 27 insertions(+), 32 deletions(-) diff --git a/.github/workflows/common-build.yml b/.github/workflows/common-build.yml index 6456ebe..5199558 100644 --- a/.github/workflows/common-build.yml +++ b/.github/workflows/common-build.yml @@ -22,4 +22,28 @@ jobs: uses: lukka/run-cmake@v10 id: runcmake with: - workflowPreset: 'build-test-and-example' \ No newline at end of file + 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 \ No newline at end of file diff --git a/.github/workflows/linux-build.yml b/.github/workflows/linux-build.yml index e2f3b51..51b5d08 100644 --- a/.github/workflows/linux-build.yml +++ b/.github/workflows/linux-build.yml @@ -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 \ No newline at end of file diff --git a/.github/workflows/windows-build.yml b/.github/workflows/windows-build.yml index 063c13f..c2f4bfa 100644 --- a/.github/workflows/windows-build.yml +++ b/.github/workflows/windows-build.yml @@ -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 \ No newline at end of file + os: windows-latest \ No newline at end of file