Build and test spa web #25
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 spa web | |
run-name: Build and test spa web | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: [main] | |
paths: | |
- 'spa/web/**' | |
- .github/workflows/build-and-test-webapp-spa.yaml | |
- .github/actions/build-web-app/** | |
env: | |
WEB_APP_LOCATION: spa/web | |
WEB_APP_TEST_LOCATION: spa/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 |