From d46daf9638aa94dcb53ca52d0eab619a28a6df4e Mon Sep 17 00:00:00 2001 From: alxndrsn Date: Tue, 15 Sep 2026 12:25:33 +0000 Subject: [PATCH] ci: fix npm/package.json location references For legacy reasons, some `npm` commands were being invoked in `./test/nginx` instead of `./test`. This works because `npm` looks for the nearest `package.json` file and uses its directory as PWD. But also quite confusing, especially in the case of `npm run test:service`, which has nothing to do with the code in `test/nginx`. --- .github/workflows/main.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 41ff423fc..f272c68d7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -42,13 +42,13 @@ jobs: - uses: actions/setup-node@v5 with: node-version-file: test/package.json - - run: cd test/nginx && npm clean-install --no-audit + - run: cd test && npm clean-install --no-audit - run: cd test/nginx && ./setup-tests.sh - - run: cd test/nginx && npm run test:nginx:mocha + - run: cd test && npm run test:nginx:mocha - run: cd test/nginx && ./lint-config.sh - - run: cd test/nginx && npx playwright install --with-deps chromium-headless-shell - - run: cd test/nginx && npm run test:nginx:playwright + - run: cd test && npx playwright install --with-deps chromium-headless-shell + - run: cd test && npm run test:nginx:playwright - if: always() run: cd test/nginx && docker compose -f nginx.test.docker-compose.yml logs --no-log-prefix nginx-ssl-selfsign @@ -76,8 +76,8 @@ jobs: - uses: actions/setup-node@v5 with: node-version-file: test/package.json - - run: cd test/nginx && npm clean-install --no-audit - - run: cd test/nginx && npm run test:service + - run: cd test && npm clean-install --no-audit + - run: cd test && npm run test:service test-images: timeout-minutes: 10 needs: