Skip to content

Create parallel_microservice_build.yml #7

Create parallel_microservice_build.yml

Create parallel_microservice_build.yml #7

Workflow file for this run

# 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, 20.x, 22.x]
# # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
# steps:
# - uses: actions/checkout@v4
# - name: Change to the frontend directory
# run: cd petclinic-frontend
# - name: Use Node.js ${{ matrix.node-version }}
# uses: actions/setup-node@v4
# with:
# node-version: ${{ matrix.node-version }}
# cache: 'npm'
# - name: Run npm lint to ensure frontend code is linted
# run: npm lint
# - name: Run build to ensure no build errors
# run: npm run build
name: Node.js CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x, 22.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
working-directory: ./petclinic-frontend

Check failure on line 59 in .github/workflows/node.js.yml

View workflow run for this annotation

GitHub Actions / Node.js CI

Invalid workflow file

The workflow is not valid. .github/workflows/node.js.yml (Line: 59, Col: 7): Unexpected value 'working-directory'
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Run npm lint to ensure frontend code is linted
run: npm run lint
working-directory: ./petclinic-frontend
- name: Run build to ensure no build errors
run: npm run build
working-directory: ./petclinic-frontend