Bump @vue/eslint-config-prettier from 9.0.0 to 10.1.0 in /2024-frontend #10069
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: Ma Cantine CI | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.11] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.11 | |
- name: Setup PostgreSQL | |
uses: Harmon758/[email protected] | |
with: | |
postgresql db: postgres | |
postgresql user: postgres | |
postgresql password: postgres | |
- name: Setup Redis | |
uses: zhulik/[email protected] | |
with: | |
redis version: "5" | |
number of databases: 5 | |
- name: Install Python dependencies | |
run: | | |
python3 -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Test Django | |
env: | |
DEBUG: True | |
SECRET: test | |
ALLOWED_HOSTS: localhost | |
DB_USER: postgres | |
DB_PASSWORD: postgres | |
DB_HOST: localhost | |
DB_PORT: 5432 | |
DB_NAME: postgres | |
HOSTNAME: localhost | |
STATICFILES_STORAGE: django.contrib.staticfiles.storage.StaticFilesStorage | |
DEFAULT_FILE_STORAGE: django.core.files.storage.FileSystemStorage | |
EMAIL_BACKEND: django.core.mail.backends.console.EmailBackend | |
DEFAULT_FROM_EMAIL: [email protected] | |
CONTACT_EMAIL: [email protected] | |
REDIS_URL: redis://localhost:6379/0 | |
SIRET_API_KEY: fake | |
SIRET_API_SECRET: fake | |
run: | | |
python3 manage.py test | |
- uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "20.x" | |
- name: Vue 2 install | |
working-directory: ./frontend | |
env: | |
NODE_OPTIONS: --openssl-legacy-provider | |
run: | | |
npm install | |
- name: Vue 2 build | |
working-directory: ./frontend | |
env: | |
NODE_OPTIONS: --openssl-legacy-provider | |
run: | | |
npm run build --if-present | |
- name: Vue 2 test | |
working-directory: ./frontend | |
run: | | |
npm run test | |
- name: Vue 3 build | |
working-directory: ./ | |
env: | |
SECRET: test | |
ALLOWED_HOSTS: localhost | |
REDIS_URL: redis://localhost:6379/0 | |
STATICFILES_STORAGE: django.contrib.staticfiles.storage.StaticFilesStorage | |
DEFAULT_FILE_STORAGE: django.core.files.storage.FileSystemStorage | |
run: | | |
python3 manage.py collectstatic --noinput | |
cd ./2024-frontend | |
npm install | |
npm run build --if-present |