@@ -3,11 +3,24 @@ name: CI
33on :
44 push :
55 branches :
6- - develop
6+ - main
7+ - version-15
78 pull_request :
89 branches :
9- - develop
1010 - main
11+ - version-15
12+ paths-ignore :
13+ - " **.css"
14+ - " **.js"
15+ - " **.md"
16+ - " **.html"
17+ - " **.csv"
18+ schedule :
19+ # Run everyday at midnight UTC / 5:30 IST
20+ - cron : " 0 0 * * *"
21+
22+ env :
23+ ECOMMERCE_BRANCH : ${{ github.base_ref || github.ref_name }}
1124
1225concurrency :
1326 group : develop-${{ github.event.number }}
@@ -30,11 +43,11 @@ jobs:
3043 MARIADB_ROOT_PASSWORD : ' root'
3144 ports :
3245 - 3306:3306
33- options : --health-cmd="mysqladmin ping" --health-interval=5s --health-timeout=2s --health-retries=3
46+ options : --health-cmd="mariadb-admin ping" --health-interval=5s --health-timeout=2s --health-retries=3
3447
3548 steps :
3649 - name : Clone
37- uses : actions/checkout@v2
50+ uses : actions/checkout@v4
3851
3952 - name : Setup Python
4053 uses : actions/setup-python@v2
@@ -51,15 +64,16 @@ jobs:
5164 run : echo "127.0.0.1 test_site" | sudo tee -a /etc/hosts
5265
5366 - name : Cache pip
54- uses : actions/cache@v2
67+ uses : actions/cache@v4
5568 with :
5669 path : ~/.cache/pip
57- key : ${{ runner.os }}-pip-${{ hashFiles('**/*requirements.txt') }}
70+ key : ${{ runner.os }}-pip-${{ hashFiles('**/*requirements.txt', '**/pyproject.toml' ) }}
5871 restore-keys : |
5972 ${{ runner.os }}-pip-
6073 ${{ runner.os }}-
74+
6175 - name : Cache node modules
62- uses : actions/cache@v2
76+ uses : actions/cache@v4
6377 env :
6478 cache-name : cache-node-modules
6579 with :
7488 id : yarn-cache-dir-path
7589 run : echo "::set-output name=dir::$(yarn cache dir)"
7690
77- - uses : actions/cache@v2
91+ - uses : actions/cache@v4
7892 id : yarn-cache
7993 with :
8094 path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
8599 - name : Install
86100 run : |
87101 bash ${GITHUB_WORKSPACE}/.github/helper/install.sh
102+ env :
103+ BRANCH_TO_CLONE : ${{ env.ECOMMERCE_BRANCH }}
88104
89105
90106 - name : Run Tests
0 commit comments