fix: buildind yml #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: | |
- devops | |
pull_request: | |
branches: | |
- devops | |
jobs: | |
build: | |
runs-on: ubuntu-latest # Utilisation d'un runner GitHub-hosted sur Ubuntu | |
container: | |
image: 'djelale/assistme:1.0.0' | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
- name: Install and start client | |
run: | | |
cd client | |
npm install | |
npm run build | |
- name: Install and start server | |
run: | | |
cd server | |
npm install | |
npm run build |