2024-02-20 09:48:59 +01:00
|
|
|
name: Build and test FrontEnd
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2024-02-20 10:55:16 +01:00
|
|
|
branches: [ master ]
|
2024-02-20 09:48:59 +01:00
|
|
|
pull_request:
|
2024-02-20 10:55:16 +01:00
|
|
|
branches: [ master ]
|
2024-02-20 09:48:59 +01:00
|
|
|
|
|
|
|
jobs:
|
2024-02-26 14:21:54 +01:00
|
|
|
Build-frontend:
|
2024-02-20 09:48:59 +01:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
|
|
uses: actions/setup-node@v3
|
|
|
|
working-directory: ./frontend
|
|
|
|
- run: npm ci
|
|
|
|
name: clean install
|
|
|
|
working-directory: ./frontend
|
|
|
|
- run: npm run build --if-present
|
|
|
|
name: build
|
|
|
|
working-directory: ./frontend
|
2024-02-26 14:21:54 +01:00
|
|
|
Test-frontend:
|
2024-02-20 09:48:59 +01:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
|
|
uses: actions/setup-node@v3
|
|
|
|
working-directory: ./frontend
|
|
|
|
- run: npm ci
|
|
|
|
name: clean install
|
|
|
|
working-directory: ./frontend
|
|
|
|
- run: npm run test:unit
|
|
|
|
name: test
|
|
|
|
working-directory: ./frontend
|