From 5bed0d535d2c1856d1bbc79e23d432276525964c Mon Sep 17 00:00:00 2001 From: Mihaly Lengyel Date: Mon, 9 Oct 2023 18:37:54 +0200 Subject: [PATCH] ci: auto install deps in frontend and backend dirs of examples before tests --- .github/workflows/test-examples.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-examples.yml b/.github/workflows/test-examples.yml index b02e63f8f..cf2efbe32 100644 --- a/.github/workflows/test-examples.yml +++ b/.github/workflows/test-examples.yml @@ -25,8 +25,8 @@ jobs: working-directory: ${{ matrix.examplePath }} steps: - uses: actions/checkout@v2 - - run: bash '[ -d "frontend" ] && npm i --prefix ./frontend' - - run: bash '[ -d "backend" ] && npm i --prefix ./backend' + - run: bash -c '[ -d "frontend" ] && npm i --prefix ./frontend' + - run: bash -c '[ -d "backend" ] && npm i --prefix ./backend' - run: npm install git+https://github.com:supertokens/supertokens-auth-react.git#$GITHUB_SHA - run: npm install - run: npm install mocha@6.1.4 jsdom-global@3.0.2 puppeteer@^11.0.0 isomorphic-fetch@^3.0.0