Budget portal #1403
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: Budget portal | |
on: | |
push: | |
pull_request: | |
schedule: | |
- cron: '0 0 * * 0' # weekly | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: 18 | |
- name: Build frontend assets | |
run: | | |
npm install -g [email protected] | |
yarn | |
yarn build | |
- name: Build images | |
run: | | |
docker-compose build | |
- name: Run tests | |
run: | | |
docker-compose run --rm app python manage.py collectstatic --no-input | |
docker-compose run --rm -e DJANGO_Q_SYNC=TRUE app python manage.py test | |
docker-compose run --rm app black --check --diff budgetportal manage.py discourse performance iym | |
- name: Dump dependency logs for debugging | |
if: ${{ failure() }} | |
run: | | |
docker-compose logs db solr minio selenium |