Skip to content

chore: set working directory for node #5

chore: set working directory for node

chore: set working directory for node #5

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: Node.js CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
working-directory: web-client

Check failure on line 25 in .github/workflows/build_frontend.yml

View workflow run for this annotation

GitHub Actions / Node.js CI

Invalid workflow file

The workflow is not valid. .github/workflows/build_frontend.yml (Line: 25, Col: 7): Unexpected value 'working-directory'
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
working-directory: web-client
- run: npm run build --if-present
working-directory: web-client
- run: npm test
working-directory: web-client