Upgrade to Node 20 & Upgrade npm packages (#463) Fix #462 #138
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: Docker build | |
on: | |
push: | |
pull_request: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build-container: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build container | |
run: docker-compose build && docker-compose pull | |
- name: Run migrations | |
run: docker-compose run app /venv/bin/python manage.py migrate | |
- name: Load initial data | |
run: docker-compose run app /venv/bin/python manage.py load_initial_data | |
- name: Run tests | |
run: docker-compose run app /venv/bin/python manage.py test |