mirror of
https://github.com/aljazceru/CTFd.git
synced 2026-01-13 19:14:30 +01:00
Fix GitHub actions and add comments table (#1604)
* Fix MySQL and Postgres GitHub actions to properly test databases * Add migration to add `comments` table
This commit is contained in:
3
.github/workflows/postgres.yml
vendored
3
.github/workflows/postgres.yml
vendored
@@ -15,6 +15,7 @@ jobs:
|
||||
env:
|
||||
POSTGRES_HOST_AUTH_METHOD: trust
|
||||
POSTGRES_DB: ctfd
|
||||
POSTGRES_PASSWORD: password
|
||||
# Set health checks to wait until postgres has started
|
||||
options: >-
|
||||
--health-cmd pg_isready
|
||||
@@ -51,7 +52,7 @@ jobs:
|
||||
env:
|
||||
AWS_ACCESS_KEY_ID: AKIAIOSFODNN7EXAMPLE
|
||||
AWS_SECRET_ACCESS_KEY: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
|
||||
TESTING_DATABASE_URL: 'postgres://postgres@postgres/ctfd'
|
||||
TESTING_DATABASE_URL: postgres://postgres:password@localhost:${{ job.services.postgres.ports[5432] }}/ctfd
|
||||
|
||||
- name: Codecov
|
||||
uses: codecov/codecov-action@v1.0.11
|
||||
|
||||
Reference in New Issue
Block a user