From 53ece3c2edff0733461c40b811e94c61128e5974 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 5 Feb 2021 19:04:14 +0100 Subject: [PATCH] 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. --- .github/workflows/ci.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1c073744f3..d94756073a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 '-----------------------------------------------------------'