frontend CI (#27)

voilà... normalement tout le ci pour le frontend est bon.. reste plus que le backend

Reviewed-on: #27
Co-authored-by: Anthony Debucquoy <debucquoy.anthony@gmail.com>
Co-committed-by: Anthony Debucquoy <debucquoy.anthony@gmail.com>
This commit is contained in:
Debucquoy Anthony 2024-02-20 09:48:59 +01:00 committed by Debucquoy Anthony
parent a795108859
commit 85b0be3479
3 changed files with 2683 additions and 5 deletions

View File

@ -1,19 +1,19 @@
name: deploy to production name: deploy to production
run-name: ${{ gitea.actor }} has pushed to production run-name: ${{ gitea.actor }} has pushed to production
on: on:
push: push:
branches: branches:
- master - $default-branch
workflow_dispatch: workflow_dispatch:
jobs: jobs:
deploy-frontend: deploy-frontend:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: fetching the repo - uses: actions/checkout@v4
uses: actions/checkout@v4 - uses: actions/node-setup
- name: installing npm dependencies
working-directory: ./frontend working-directory: ./frontend
run: npm install
- name: building - name: building
working-directory: ./frontend working-directory: ./frontend
run: npm run build run: npm run build

View File

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

2643
frontend/package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff