ci: added collation server for mariadb
This commit is contained in:
21
.github/workflows/ci.yml
vendored
21
.github/workflows/ci.yml
vendored
@@ -20,29 +20,27 @@ jobs:
|
|||||||
image: redis:alpine
|
image: redis:alpine
|
||||||
ports:
|
ports:
|
||||||
- 12000:6379
|
- 12000:6379
|
||||||
|
mysql:
|
||||||
|
image: mariadb:10.6
|
||||||
|
env:
|
||||||
|
MARIADB_ROOT_PASSWORD: "root"
|
||||||
|
ports:
|
||||||
|
- 3306:3306
|
||||||
|
options: --health-cmd="mariadb-admin ping" --health-interval=5s --health-timeout=2s --health-retries=3
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Clone
|
- name: Clone
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Start MariaDB
|
|
||||||
uses: getong/mariadb-action@v1.1
|
|
||||||
host port: 3306
|
|
||||||
container port: 3306
|
|
||||||
character set server: 'utf8mb4'
|
|
||||||
collation server: 'utf8_general_ci'
|
|
||||||
mariadb version: '10.6'
|
|
||||||
mysql root password: root
|
|
||||||
|
|
||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: '3.10'
|
python-version: "3.10"
|
||||||
|
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: '18'
|
node-version: 18
|
||||||
check-latest: true
|
check-latest: true
|
||||||
|
|
||||||
- name: Setup ache for bench
|
- name: Setup ache for bench
|
||||||
@@ -94,4 +92,3 @@ jobs:
|
|||||||
- name: Run Tests
|
- name: Run Tests
|
||||||
working-directory: /home/runner/frappe-bench
|
working-directory: /home/runner/frappe-bench
|
||||||
run: bench --site frappe.local run-tests --app lms
|
run: bench --site frappe.local run-tests --app lms
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user