Don't use pushd/popd unnecessarily
Each step executes in its own shell, so it's not necessary to restore the previous working directory and a simple "cd" would do just fine but, in fact, we don't even need this as we can just set the working directory at the step level.
This commit is contained in:
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
@@ -180,10 +180,9 @@ jobs:
|
||||
|
||||
- name: Testing
|
||||
if: matrix.skip_testing != true
|
||||
working-directory: tests
|
||||
run: |
|
||||
pushd tests
|
||||
./test || rc=$?
|
||||
popd
|
||||
if [ -n "$rc" ]; then
|
||||
echo '*** Tests failed, contents of httpbin.log follows: ***'
|
||||
echo '-----------------------------------------------------------'
|
||||
|
Reference in New Issue
Block a user