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:
parent
1aae6e26ca
commit
53ece3c2ed
1 changed files with 1 additions and 2 deletions
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 '-----------------------------------------------------------'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue