Skip to content

Build and test restaurant web #35

Build and test restaurant web

Build and test restaurant web #35

name: Build and test restaurant web
run-name: Build and test restaurant web
on:
workflow_dispatch:
pull_request:
branches: [main]
paths:
- 'restaurant/web/**'
- .github/workflows/build-and-test-webapp-restaurant.yaml
- .github/actions/build-web-app/**
env:
WEB_APP_LOCATION: restaurant/web
WEB_APP_TEST_LOCATION: restaurant/test
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
- name: Install dependencies
shell: bash
working-directory: ${{ env.WEB_APP_LOCATION }}
run: |
npm ci
- name: Build project
shell: bash
working-directory: ${{ env.WEB_APP_LOCATION }}
run: |
npm run build