diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 7289350..f4b1aa7 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -76,11 +76,11 @@ jobs: - 5432:5432 options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + - uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 - name: Install Dependencies run: | python -m pip install --upgrade pip @@ -88,9 +88,12 @@ jobs: sudo apt-get install -y gettext npm install -g @lhci/cli@0.14.x - name: Migrate database - run: cd app && DB_NAME=term_db DB_USER=sadilar DB_PASSWORD=sadilar python manage.py migrate + run: | + cp .env.testing app/.env + cd app/ + DB_NAME=term_db DB_USER=sadilar DB_PASSWORD=sadilar python manage.py migrate env: DJANGO_SETTINGS_MODULE: app.settings - DATABASE_URL: postgres://sadilar:sadilar@localhost:5432/test_db + DATABASE_URL: postgres://sadilar:sadilar@localhost:5432/term_db - name: Run Lighthouse run: cd app && lhci autorun