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