File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Bench Build Test
2+
3+ on :
4+ pull_request :
5+
6+ concurrency :
7+ group : ${{ github.repository }}-${{ github.event.number }}
8+ cancel-in-progress : true
9+
10+ jobs :
11+ Bench-Build-Test :
12+ runs-on : self-hosted
13+ container : docker.io/frappe/bench:latest
14+
15+ steps :
16+ - name : Setup Github ENV
17+ run : |
18+ echo "HOME=/home/frappe" >> $GITHUB_ENV
19+ echo "PATH=/home/frappe/.local/bin:$PATH" >> $GITHUB_ENV
20+ - name : Create a new minimal bench
21+ run : bench init frappe-bench --skip-redis-config-generation --no-procfile --skip-assets
22+
23+ - name : Get APP and Build
24+ run : |
25+ cd frappe-bench
26+ bench get-app https://rtbot:${{ secrets.RTBOT_TOKEN }}@github.com/${{ github.repository }} --branch ${{ github.head_ref || github.ref_name }}
27+ - name : Cleanup
28+ if : ${{ always() }}
29+ uses : rtCamp/action-cleanup@master
30+
You can’t perform that action at this time.
0 commit comments