diff --git a/.github/helper/install.sh b/.github/helper/install.sh index 5828e6fdce..38d10c6ed8 100644 --- a/.github/helper/install.sh +++ b/.github/helper/install.sh @@ -60,7 +60,7 @@ sed -i 's/redis_socketio:/# redis_socketio:/g' Procfile bench get-app erpnext --branch "$BRANCH_TO_CLONE" --resolve-deps -if [ "$RUN_RESTORE" == "false" ]; then +if [ "${RUN_RESTORE:-false}" == "true" ]; then bench --site test_site restore ${GITHUB_WORKSPACE}/20240822_162707-a1_localhost-database.sql.gz fi @@ -71,7 +71,9 @@ wait $wkpid bench use test_site bench start & -# bench reinstall --yes +# if [ "${RUN_RESTORE:-false}" == "false" ]; then +# bench reinstall --yes +# fi bench --verbose install-app india_compliance bench --site test_site add-to-hosts diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 7233f314a1..7b6d02b421 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -13,6 +13,12 @@ name: "CodeQL" on: workflow_call: + pull_request: + paths-ignore: + - "**.css" + - "**.md" + - "**.html" + - "**.csv" push: diff --git a/.github/workflows/docs-required.yml b/.github/workflows/docs-required.yml index e2755b636a..e84b2d1fb3 100644 --- a/.github/workflows/docs-required.yml +++ b/.github/workflows/docs-required.yml @@ -1,7 +1,8 @@ name: Documentation Required on: - push: + pull_request: + types: [ opened, synchronize, reopened, edited ] jobs: build: diff --git a/.github/workflows/linters.yml b/.github/workflows/linters.yml index 49b18e59e0..bb3d15e665 100644 --- a/.github/workflows/linters.yml +++ b/.github/workflows/linters.yml @@ -2,6 +2,10 @@ name: Linters on: workflow_call: + pull_request: + paths-ignore: + - '**.md' + - '**.csv' jobs: diff --git a/.github/workflows/post_install.yml b/.github/workflows/post_install.yml index 2a6f72aaf7..8ba0a4d7e2 100644 --- a/.github/workflows/post_install.yml +++ b/.github/workflows/post_install.yml @@ -92,7 +92,7 @@ jobs: - name: Set Restore Flag run: echo "RUN_RESTORE=true" >> $GITHUB_ENV - - name: Install + - name: Run Post Install Patch run: | bash ${GITHUB_WORKSPACE}/.github/helper/install.sh env: diff --git a/.github/workflows/semantic-commits.yml b/.github/workflows/semantic-commits.yml index d1df134072..773e438913 100644 --- a/.github/workflows/semantic-commits.yml +++ b/.github/workflows/semantic-commits.yml @@ -1,7 +1,7 @@ name: Semantic Commits on: - push: + pull_request: {} permissions: contents: read diff --git a/.github/workflows/server-tests.yml b/.github/workflows/server-tests.yml index 8485b2df24..aa1c596c9d 100644 --- a/.github/workflows/server-tests.yml +++ b/.github/workflows/server-tests.yml @@ -11,6 +11,14 @@ on: secrets: codecov_token: + + pull_request: + paths-ignore: + - "**.css" + - "**.js" + - "**.md" + - "**.html" + - "**.csv" push: branches: [develop, version-14-hotfix, version-14, version-15-hotfix, version-15]