Build and test restaurant web #36
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |