Anthony Debucquoy
85b0be3479
voilà... normalement tout le ci pour le frontend est bon.. reste plus que le backend Reviewed-on: PGL/Clyde#27 Co-authored-by: Anthony Debucquoy <debucquoy.anthony@gmail.com> Co-committed-by: Anthony Debucquoy <debucquoy.anthony@gmail.com>
36 lines
869 B
YAML
36 lines
869 B
YAML
name: Build and test FrontEnd
|
|
|
|
on:
|
|
push:
|
|
branches: [ $default-branch ]
|
|
pull_request:
|
|
branches: [ $default-branch ]
|
|
|
|
jobs:
|
|
Build:
|
|
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:
|
|
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
|