-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (35 loc) · 1 KB
/
test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
on: pull_request
name: Run linting checks and tests
jobs:
lint:
name: Linting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check Linting.
run: |
docker run -v $PWD/app:/app ghcr.io/rev-amp/backend /app/scripts/lint.sh
test:
name: Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run tests.
run: |
cat > .env << EOF
SERVER_NAME=localhost
SERVER_HOST=http://localhost
PROJECT_NAME=Rev-AMP
SECRET_KEY=$(openssl rand -hex 32)
FIRST_SUPERUSER=admin@revamp.ci.env
FIRST_SUPERUSER_PASSWORD=F01bc9165d5b7a67d58fDd38dafdc9ac
SMTP_HOST=
SENTRY_DSN=
# Database configuration - set postgres for CI
DB=postgres
DB_SERVER=db
DB_USER=revamp
DB_PASSWORD=password
DB_NAME=revamp
EOF
docker-compose up --abort-on-container-exit --exit-code-from backend