Skip to content

Commit cff1da5

Browse files
Workflow: Add Build Test workflow
Signed-off-by: Immanuel Raj <iamimmanuelraj@gmail.com>
1 parent 76824d1 commit cff1da5

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/build-test.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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+

0 commit comments

Comments
 (0)