Skip to content

Commit

Permalink
use absolute paths for ci script to work
Browse files Browse the repository at this point in the history
  • Loading branch information
abaskk-msft committed Jul 2, 2024
1 parent de22930 commit 6591461
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,16 @@ jobs:

- name: Test - Persistence Test Yaml Files (ubuntu & macos)
run: |
resultApp=$(dotnet bin/Debug/YamlValidator/YamlValidator.dll validate --path "../Persistence.Tests/_TestData/AppsWithYaml")
resultApp=$(dotnet bin/Debug/YamlValidator/YamlValidator.dll validate --path "bin/Debug/Persistence.Tests/_TestData/AppsWithYaml")
echo "$resultApp"
if [ "$resultApp" == *"Validation Failed"* ]; then
echo "Invalid Yaml Files found in ../../src/Persistence.Tests/_TestData/AppsWithYaml"
echo "Invalid Yaml Files found in AppsWithYaml"
exit 1
fi
resultFiles=$(dotnet bin/Debug/YamlValidator/YamlValidator.dll validate --path "../Persistence.Tests/_TestData/ValidYaml-CI")
resultFiles=$(dotnet bin/Debug/YamlValidator/YamlValidator.dll validate --path "bin/Debug/Persistence.Tests/_TestData/ValidYaml-CI")
echo "$resultFiles"
if [ "$resultFiles" == *"Validation Failed"* ]; then
echo "Invalid Yaml Files found in ../../src/Persistence.Tests/_TestData/ValidYaml-CI"
echo "Invalid Yaml Files found in ValidYaml-CI"
exit 1
fi
if: ${{ runner.os != 'Windows' }}
Expand Down

0 comments on commit 6591461

Please sign in to comment.