From 13099c51fdaeecf146c6bb8eacc874cf8771f443 Mon Sep 17 00:00:00 2001 From: Raymonzut <40148684+Raymonzut@users.noreply.github.com> Date: Fri, 17 Apr 2020 16:52:06 +0200 Subject: [PATCH] Fix working dir --- .github/workflows/nodejs.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index dfb538c..da9828a 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -8,9 +8,10 @@ on: jobs: build: + env: + CLIENT_DIR: ./client runs-on: ubuntu-latest - strategy: matrix: node-version: [10.x, 12.x, 13.x] @@ -21,9 +22,11 @@ jobs: uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} - - run: cd client/ - run: npm ci + working-directory: ${{env.CLIENT_DIR}} - run: npm run build --if-present + working-directory: ${{env.CLIENT_DIR}} - run: npm test + working-directory: ${{env.CLIENT_DIR}} env: CI: true