diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index aecbca9..06db624 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -165,7 +165,7 @@ jobs: - name: Verify output run: | echo "Updated files: ${{ steps.patch.outputs.updated_files }}" - + # Output should contain both files if [[ "${{ steps.patch.outputs.updated_files }}" == *"app1/.env"* ]] && \ [[ "${{ steps.patch.outputs.updated_files }}" == *"app2/.env"* ]]; then @@ -173,4 +173,63 @@ jobs: else echo "Error: Output doesn't contain expected files" exit 1 - fi \ No newline at end of file + fi + + test-key-only-lines: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Create env file with key-only lines + run: | + mkdir -p test + cat > test/.env <