Skip to content

Commit

Permalink
vite build path alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
nektdev committed Oct 21, 2024
1 parent a28dd7e commit 43434bd
Showing 1 changed file with 5 additions and 18 deletions.
23 changes: 5 additions & 18 deletions .github/workflows/.build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,6 @@ jobs:
with:
node-version: '16.x'

- name: Install Node.js Dependencies
run: npm install

- name: Build JavaScript with Vite
run: npm run build

- name: Verify Vite build output
run: ls -R sfs/vite-build

- name: Move Vite build output
run: mv sfs/vite-build static/vite-build

- name: Setup Python
uses: actions/setup-python@v1
with:
Expand All @@ -53,6 +41,9 @@ jobs:
- name: Verify that redis is up
run: redis-cli ping

- name: Checkout code
uses: actions/checkout@v2

- name: Copy requirements files
run: |
mkdir -p ${GITHUB_WORKSPACE}/sfs/
Expand All @@ -65,16 +56,11 @@ jobs:
cd sfs
pip install -r requirements.txt
pip install -r requirements_dev.txt
npm install && npm run build
- name: Create log directory with sudo
run: sudo mkdir -p /home/app/sfs/logs/

- name: Collect static files
run: python manage.py collectstatic --no-input

- name: Verify collected static files
run: ls -R /home/runner/work/shared-futures-space/shared-futures-space/static/

- name: Run Tests
env:
POSTGRES_HOST: localhost
Expand All @@ -84,4 +70,5 @@ jobs:
VITE_DEV_MODE: 0
run: |
python manage.py migrate --no-input
python manage.py collectstatic --no-input
pytest tests

0 comments on commit 43434bd

Please sign in to comment.