Anthony Debucquoy
bb5d1a6982
All checks were successful
Build and test backend / Build-backend (push) Successful in 2m59s
Build and test backend / Test-backend (push) Successful in 1m13s
deploy to production / deploy-frontend (push) Successful in 24s
Build and test FrontEnd / Build-frontend (push) Successful in 22s
Build and test FrontEnd / Test-frontend (push) Successful in 22s
36 lines
869 B
YAML
36 lines
869 B
YAML
name: Build and test FrontEnd
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
Build-frontend:
|
|
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
|
|
Test-frontend:
|
|
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
|