From 93e0431bc224797e0bef2c7d7c54aa4ef6995811 Mon Sep 17 00:00:00 2001 From: Yehonal Date: Wed, 21 Aug 2024 17:18:41 +0200 Subject: [PATCH] chore: Update test-generate-files.sh script and workflow --- .github/workflows/test-generate-files.yml | 3 ++- tests/test-generate-files.sh | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test-generate-files.yml b/.github/workflows/test-generate-files.yml index 9a66d48..319ac18 100644 --- a/.github/workflows/test-generate-files.yml +++ b/.github/workflows/test-generate-files.yml @@ -25,4 +25,5 @@ jobs: - name: Run test-generate-files.sh run: | chmod +x tests/test-generate-files.sh - ./tests/test-generate-files.sh \ No newline at end of file + cd ./tests/ + bash ./test-generate-files.sh \ No newline at end of file diff --git a/tests/test-generate-files.sh b/tests/test-generate-files.sh index 5ed4614..90c031f 100755 --- a/tests/test-generate-files.sh +++ b/tests/test-generate-files.sh @@ -29,8 +29,8 @@ teardown() { @test "Check if the script processes the default configuration file" { run bash ../generate-files.sh [ "$status" -eq 0 ] - [ -f "../out/gpt-schema.default.yml" ] - [ -f "../out/gpt-instructions.default.md" ] + [ -f "../out/default.gpt-schema.yml" ] + [ -f "../out/default.gpt-instructions.md" ] } @test "Check if warnings are displayed for missing variables in dist file" {