mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-18 22:44:24 +01:00
Properly test under other databases with Github Actions
This commit is contained in:
3
.github/workflows/lint.yml
vendored
3
.github/workflows/lint.yml
vendored
@@ -11,7 +11,6 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: ['3.6']
|
python-version: ['3.6']
|
||||||
TESTING_DATABASE_URL: ['sqlite://']
|
|
||||||
|
|
||||||
name: Linting
|
name: Linting
|
||||||
steps:
|
steps:
|
||||||
@@ -30,6 +29,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Lint
|
- name: Lint
|
||||||
run: make lint
|
run: make lint
|
||||||
|
env:
|
||||||
|
TESTING_DATABASE_URL: 'sqlite://'
|
||||||
|
|
||||||
- name: Lint Dockerfile
|
- name: Lint Dockerfile
|
||||||
uses: brpaz/hadolint-action@master
|
uses: brpaz/hadolint-action@master
|
||||||
|
|||||||
2
.github/workflows/mysql.yml
vendored
2
.github/workflows/mysql.yml
vendored
@@ -20,7 +20,6 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: ['3.6']
|
python-version: ['3.6']
|
||||||
TESTING_DATABASE_URL: ['mysql+pymysql://root@localhost/ctfd']
|
|
||||||
|
|
||||||
name: Python ${{ matrix.python-version }}
|
name: Python ${{ matrix.python-version }}
|
||||||
steps:
|
steps:
|
||||||
@@ -43,6 +42,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
AWS_ACCESS_KEY_ID: AKIAIOSFODNN7EXAMPLE
|
AWS_ACCESS_KEY_ID: AKIAIOSFODNN7EXAMPLE
|
||||||
AWS_SECRET_ACCESS_KEY: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
|
AWS_SECRET_ACCESS_KEY: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
|
||||||
|
TESTING_DATABASE_URL: 'mysql+pymysql://root@localhost/ctfd'
|
||||||
|
|
||||||
- name: Codecov
|
- name: Codecov
|
||||||
uses: codecov/codecov-action@v1.0.11
|
uses: codecov/codecov-action@v1.0.11
|
||||||
|
|||||||
2
.github/workflows/postgres.yml
vendored
2
.github/workflows/postgres.yml
vendored
@@ -29,7 +29,6 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: ['3.6']
|
python-version: ['3.6']
|
||||||
TESTING_DATABASE_URL: ['postgres://postgres@localhost/ctfd']
|
|
||||||
|
|
||||||
name: Python ${{ matrix.python-version }}
|
name: Python ${{ matrix.python-version }}
|
||||||
steps:
|
steps:
|
||||||
@@ -52,6 +51,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
AWS_ACCESS_KEY_ID: AKIAIOSFODNN7EXAMPLE
|
AWS_ACCESS_KEY_ID: AKIAIOSFODNN7EXAMPLE
|
||||||
AWS_SECRET_ACCESS_KEY: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
|
AWS_SECRET_ACCESS_KEY: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
|
||||||
|
TESTING_DATABASE_URL: 'postgres://postgres@localhost/ctfd'
|
||||||
|
|
||||||
- name: Codecov
|
- name: Codecov
|
||||||
uses: codecov/codecov-action@v1.0.11
|
uses: codecov/codecov-action@v1.0.11
|
||||||
|
|||||||
2
.github/workflows/sqlite.yml
vendored
2
.github/workflows/sqlite.yml
vendored
@@ -11,7 +11,6 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: ['3.6']
|
python-version: ['3.6']
|
||||||
TESTING_DATABASE_URL: ['sqlite://']
|
|
||||||
|
|
||||||
name: Python ${{ matrix.python-version }}
|
name: Python ${{ matrix.python-version }}
|
||||||
steps:
|
steps:
|
||||||
@@ -35,6 +34,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
AWS_ACCESS_KEY_ID: AKIAIOSFODNN7EXAMPLE
|
AWS_ACCESS_KEY_ID: AKIAIOSFODNN7EXAMPLE
|
||||||
AWS_SECRET_ACCESS_KEY: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
|
AWS_SECRET_ACCESS_KEY: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
|
||||||
|
TESTING_DATABASE_URL: 'sqlite://'
|
||||||
|
|
||||||
- name: Codecov
|
- name: Codecov
|
||||||
uses: codecov/codecov-action@v1.0.11
|
uses: codecov/codecov-action@v1.0.11
|
||||||
|
|||||||
Reference in New Issue
Block a user