| types: [opened, labelled, synchronize, reopened] |
| group: server-postgres-develop-${{ github.event.number }} |
| if: ${{ contains(github.event.pull_request.labels.*.name, 'postgres') }} |
| POSTGRES_PASSWORD: travis |
| uses: actions/checkout@v2 |
| uses: actions/setup-python@v2 |
| uses: actions/setup-node@v2 |
| run: echo "127.0.0.1 test_site" | sudo tee -a /etc/hosts |
| key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} |
| - name: Cache node modules |
| cache-name: cache-node-modules |
| key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} |
| ${{ runner.os }}-build-${{ env.cache-name }}- |
| - name: Get yarn cache directory path |
| run: echo "::set-output name=dir::$(yarn cache dir)" |
| path: ${{ steps.yarn-cache-dir-path.outputs.dir }} |
| key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} |
| run: bash ${GITHUB_WORKSPACE}/.github/helper/install.sh |
| run: cd ~/frappe-bench/ && bench --site test_site run-parallel-tests --app erpnext --use-orchestrator |
| CI_BUILD_ID: ${{ github.run_id }} |
| ORCHESTRATOR_URL: http://test-orchestrator.frappe.io |