mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-16 03:29:16 +00:00
ci: workflow dispatch options (#29611)
This commit is contained in:
5
.github/helper/install.sh
vendored
5
.github/helper/install.sh
vendored
@@ -8,7 +8,10 @@ sudo apt-get install redis-server libcups2-dev
|
|||||||
|
|
||||||
pip install frappe-bench
|
pip install frappe-bench
|
||||||
|
|
||||||
git clone https://github.com/frappe/frappe --branch "${GITHUB_BASE_REF:-${GITHUB_REF##*/}}" --depth 1
|
frappeuser=${FRAPPE_USER:-"frappe"}
|
||||||
|
frappebranch=${FRAPPE_BRANCH:-${GITHUB_BASE_REF:-${GITHUB_REF##*/}}}
|
||||||
|
|
||||||
|
git clone "https://github.com/${frappeuser}/frappe" --branch "${frappebranch}" --depth 1
|
||||||
bench init --skip-assets --frappe-path ~/frappe --python "$(which python)" frappe-bench
|
bench init --skip-assets --frappe-path ~/frappe --python "$(which python)" frappe-bench
|
||||||
|
|
||||||
mkdir ~/frappe-bench/sites/test_site
|
mkdir ~/frappe-bench/sites/test_site
|
||||||
|
|||||||
15
.github/workflows/server-tests-mariadb.yml
vendored
15
.github/workflows/server-tests-mariadb.yml
vendored
@@ -6,12 +6,23 @@ on:
|
|||||||
- '**.js'
|
- '**.js'
|
||||||
- '**.md'
|
- '**.md'
|
||||||
- '**.html'
|
- '**.html'
|
||||||
workflow_dispatch:
|
|
||||||
push:
|
push:
|
||||||
branches: [ develop ]
|
branches: [ develop ]
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- '**.js'
|
- '**.js'
|
||||||
- '**.md'
|
- '**.md'
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
user:
|
||||||
|
description: 'user'
|
||||||
|
required: true
|
||||||
|
default: 'frappe'
|
||||||
|
type: string
|
||||||
|
branch:
|
||||||
|
description: 'Branch name'
|
||||||
|
default: 'develop'
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: server-mariadb-develop-${{ github.event.number }}
|
group: server-mariadb-develop-${{ github.event.number }}
|
||||||
@@ -95,6 +106,8 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
DB: mariadb
|
DB: mariadb
|
||||||
TYPE: server
|
TYPE: server
|
||||||
|
FRAPPE_USER: ${{ github.event.inputs.user }}
|
||||||
|
FRAPPE_BRANCH: ${{ github.event.inputs.branch }}
|
||||||
|
|
||||||
- name: Run Tests
|
- name: Run Tests
|
||||||
run: cd ~/frappe-bench/ && bench --site test_site run-parallel-tests --app erpnext --use-orchestrator --with-coverage
|
run: cd ~/frappe-bench/ && bench --site test_site run-parallel-tests --app erpnext --use-orchestrator --with-coverage
|
||||||
|
|||||||
Reference in New Issue
Block a user