Skip to content
This repository has been archived by the owner on Mar 15, 2024. It is now read-only.

added delayed response notice to foundation donor help page #796

added delayed response notice to foundation donor help page

added delayed response notice to foundation donor help page #796

name: Continuous Integration
on:
push:
branches: [ 'main' ]
pull_request:
branches: [ 'main' ]
jobs:
test_node:
name: Node CI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14
cache: 'npm'
- name: Install Node Dependencies
run: npm ci
- name: Run Tests
run: npm test
test_python:
name: Python CI
runs-on: ubuntu-latest
services:
postgres:
image: postgres:10
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: donate
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
env:
# Update these for tests on github!
ALLOWED_HOSTS: localhost
CONTENT_TYPE_NO_SNIFF: True
DATABASE_URL: postgres://postgres:postgres@localhost:5432/donate
DEBUG: False
DJANGO_SECRET_KEY: secret
SET_HSTS: False
SLACK_WEBHOOK_PONTOON: ${{ secrets.SLACK_WEBHOOK_PONTOON }}
SSL_REDIRECT: False
USE_S3: False
X_FRAME_OPTIONS: DENY
XSS_PROTECTION: True
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.9
cache: 'pip'
- uses: actions/setup-node@v2
with:
node-version: 14
cache: 'npm'
- name: Install Python Dependencies
run: pip install -r requirements.txt -r dev-requirements.txt
- name: Run Tests
run: |
flake8 donate/
coverage run --source './donate' ./manage.py test --settings=donate.settings --configuration=Testing
test_integration:
name: Integration testing
runs-on: ubuntu-latest
services:
postgres:
image: postgres:10
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: donate
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
env:
# Update these for tests on github!
ALLOWED_HOSTS: localhost
CONTENT_TYPE_NO_SNIFF: True
DATABASE_URL: postgres://postgres:postgres@localhost:5432/donate
DEBUG: False
DJANGO_SECRET_KEY: secret
SET_HSTS: False
SLACK_WEBHOOK_PONTOON: ${{ secrets.SLACK_WEBHOOK_PONTOON }}
SSL_REDIRECT: False
USE_S3: False
X_FRAME_OPTIONS: DENY
XSS_PROTECTION: True
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.9
cache: 'pip'
- uses: actions/setup-node@v2
with:
node-version: 14
cache: 'npm'
- name: Install Python Dependencies
run: pip install -r requirements.txt -r dev-requirements.txt
- name: Install Node Dependencies
run: npm ci
- name: Install additional tooling
run: |
sudo apt-get install -y gettext libgconf-2-4
- name: Install Playwrightx
run: npm run playwright:install
- name: Preroll
run: |
npm run build
python manage.py collectstatic --no-input --verbosity 0
python manage.py migrate --no-input
python manage.py load_fake_data
- name: Integration Tests
run: npm run playwright:ci