1
0
forked from PGL/Clyde

Build and push the backend on pr and merge

This commit is contained in:
2024-02-26 14:21:54 +01:00
committed by Debucquoy Anthony
parent 6503af0096
commit bb5d1a6982
2 changed files with 33 additions and 2 deletions

View File

@ -0,0 +1,35 @@
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