diff --git a/.github/workflows/test-env-commands.yml b/.github/workflows/test-env-commands.yml index e2be92b00..657bd45ff 100644 --- a/.github/workflows/test-env-commands.yml +++ b/.github/workflows/test-env-commands.yml @@ -83,6 +83,26 @@ jobs: command_line: rit show env assert_file_path: testdata/gha_workflows/env_workflow/assert1.txt expected_result: PASSED + - name: RIT SET ENV command ERROR (4) + uses: GuillaumeFalourd/test-cli-commands-action@v1 + with: + command_line: rit set env --flag=test + assert_file_path: testdata/gha_workflows/env_workflow/assert3.txt + expected_result: PASSED + specific_line: 1 + - name: RIT DELETE ENV command ERROR (5) + uses: GuillaumeFalourd/test-cli-commands-action@v1 + with: + command_line: rit delete env --flag=test + assert_file_path: testdata/gha_workflows/env_workflow/assert3.txt + expected_result: PASSED + specific_line: 1 + - name: RIT DELETE ENV command ERROR (6) + uses: GuillaumeFalourd/test-cli-commands-action@v1 + with: + command_line: rit delete env --env=new_test + assert_file_path: testdata/gha_workflows/env_workflow/assert4.txt + expected_result: PASSED macos: runs-on: macos-latest @@ -118,7 +138,27 @@ jobs: command_line: rit show env assert_file_path: testdata/gha_workflows/env_workflow/assert1.txt expected_result: PASSED - + - name: RIT SET ENV command ERROR (4) + uses: GuillaumeFalourd/test-cli-commands-action@v1 + with: + command_line: rit set env --flag=test + assert_file_path: testdata/gha_workflows/env_workflow/assert3.txt + expected_result: PASSED + specific_line: 1 + - name: RIT DELETE ENV command ERROR (5) + uses: GuillaumeFalourd/test-cli-commands-action@v1 + with: + command_line: rit delete env --flag=test + assert_file_path: testdata/gha_workflows/env_workflow/assert3.txt + expected_result: PASSED + specific_line: 1 + - name: RIT DELETE ENV command ERROR (6) + uses: GuillaumeFalourd/test-cli-commands-action@v1 + with: + command_line: rit delete env --env=new_test + assert_file_path: testdata/gha_workflows/env_workflow/assert4.txt + expected_result: PASSED + windows: runs-on: windows-latest steps: @@ -154,3 +194,23 @@ jobs: command_line: ./rit.exe show env assert_file_path: testdata/gha_workflows/env_workflow/assert1.txt expected_result: PASSED + - name: RIT SET ENV command ERROR (4) + uses: GuillaumeFalourd/test-cli-commands-action@v1 + with: + command_line: ./rit.exe set env --flag=test + assert_file_path: testdata/gha_workflows/env_workflow/assert3.txt + expected_result: PASSED + specific_line: 1 + - name: RIT DELETE ENV command ERROR (5) + uses: GuillaumeFalourd/test-cli-commands-action@v1 + with: + command_line: ./rit.exe delete env --flag=test + assert_file_path: testdata/gha_workflows/env_workflow/assert3.txt + expected_result: PASSED + specific_line: 1 + - name: RIT DELETE ENV command ERROR (6) + uses: GuillaumeFalourd/test-cli-commands-action@v1 + with: + command_line: ./rit.exe delete env --env=new_test + assert_file_path: testdata/gha_workflows/env_workflow/assert4.txt + expected_result: PASSED diff --git a/testdata/gha_workflows/env_workflow/assert3.txt b/testdata/gha_workflows/env_workflow/assert3.txt new file mode 100644 index 000000000..c3712cffa --- /dev/null +++ b/testdata/gha_workflows/env_workflow/assert3.txt @@ -0,0 +1 @@ +Error: unknown flag: --flag diff --git a/testdata/gha_workflows/env_workflow/assert4.txt b/testdata/gha_workflows/env_workflow/assert4.txt new file mode 100644 index 000000000..5f29d45ea --- /dev/null +++ b/testdata/gha_workflows/env_workflow/assert4.txt @@ -0,0 +1 @@ +Error: env 'new_test' not found, please provide a value for env valid