Skip to content

Build and test spa web #21

Build and test spa web

Build and test spa web #21

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