Skip to content

Commit

Permalink
add Install Node.js action & npm install to CI script
Browse files Browse the repository at this point in the history
  • Loading branch information
DrCBeatz committed Mar 29, 2024
1 parent 4de3828 commit 5b1bc58
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/django-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,22 @@ jobs:
- name: Add MDB API Key
run: docker-compose exec -T web python manage.py addapikey

# - name: Run frontend tests
# run: |
# docker-compose exec -T web bash -c "cd frontend && npm install && npm run test"

- name: Install Node.js
uses: actions/setup-node@v2
with:
node-version: "20.9.0"

- name: Install Node.js dependencies
run: npm install
working-directory: ./frontend/

- name: Run frontend tests
run: |
docker-compose exec -T web bash -c "cd frontend && npm install && npm run test"
run: npm test
working-directory: ./frontend/

- name: Remove MDB API Key
run: docker-compose exec -T web python manage.py removeapikey
Expand Down

0 comments on commit 5b1bc58

Please sign in to comment.