From 8a32870138d4fa863ca663574d41cca2ec67085b Mon Sep 17 00:00:00 2001 From: Alfredo Altamirano Date: Wed, 13 Sep 2023 01:00:22 -0600 Subject: [PATCH 1/5] ci: update workflow dependencies --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 61c1f52..bdf59e4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,12 +33,12 @@ jobs: - name: Setup Python uses: actions/setup-python@v4 with: - python-version: "3.10" + python-version: "3.11" - name: Setup Node uses: actions/setup-node@v3 with: - node-version: 14 + node-version: 18 check-latest: true - name: Cache pip From 9b6b3c6f589f3736d14c6ac9233e5a486d87297d Mon Sep 17 00:00:00 2001 From: Alfredo Altamirano Date: Wed, 13 Sep 2023 01:46:01 -0600 Subject: [PATCH 2/5] ci: use ERPNext 14 for CI workflow --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bdf59e4..6348fc8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -72,7 +72,7 @@ jobs: - name: Install working-directory: /home/runner/frappe-bench run: | - bench get-app erpnext + bench get-app erpnext --branch version-14 bench get-app erpnext_mexico_compliance $GITHUB_WORKSPACE bench setup requirements --dev bench new-site --db-root-password root --admin-password admin test_site From 9c8a47898168c0224c187a8555905872818d828c Mon Sep 17 00:00:00 2001 From: Alfredo Altamirano Date: Wed, 13 Sep 2023 02:03:03 -0600 Subject: [PATCH 3/5] ci: update ci workflow from boilerplate --- .github/workflows/ci.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6348fc8..872574f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,6 +18,14 @@ jobs: name: Server services: + redis-cache: + image: redis:alpine + ports: + - 13000:6379 + redis-queue: + image: redis:alpine + ports: + - 11000:6379 mariadb: image: mariadb:10.6 env: @@ -52,7 +60,7 @@ jobs: - name: Get yarn cache directory path id: yarn-cache-dir-path - run: 'echo "::set-output name=dir::$(yarn cache dir)"' + run: 'echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT' - uses: actions/cache@v3 id: yarn-cache From e2d82dc3c76caa4d118b48ae7d3ad8f01c5958f8 Mon Sep 17 00:00:00 2001 From: Alfredo Altamirano Date: Wed, 13 Sep 2023 02:08:22 -0600 Subject: [PATCH 4/5] ci: downgrade python version --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 872574f..66933f7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,7 +41,7 @@ jobs: - name: Setup Python uses: actions/setup-python@v4 with: - python-version: "3.11" + python-version: "3.10" - name: Setup Node uses: actions/setup-node@v3 From c00b59775b233d1d1f533e7fa303f4732fd8e75a Mon Sep 17 00:00:00 2001 From: Alfredo Altamirano Date: Wed, 13 Sep 2023 02:18:05 -0600 Subject: [PATCH 5/5] ci: specify frappe version --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 66933f7..29c3d05 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -73,7 +73,7 @@ jobs: - name: Setup run: | pip install frappe-bench - bench init --skip-redis-config-generation --skip-assets --python "$(which python)" ~/frappe-bench + bench init --frappe-branch version-14 --skip-redis-config-generation --skip-assets --python "$(which python)" ~/frappe-bench mysql --host 127.0.0.1 --port 3306 -u root -proot -e "SET GLOBAL character_set_server = 'utf8mb4'" mysql --host 127.0.0.1 --port 3306 -u root -proot -e "SET GLOBAL collation_server = 'utf8mb4_unicode_ci'"