Workflow: Add Build Test workflow #2
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Bench Build Test | |
| on: | |
| pull_request: | |
| concurrency: | |
| group: ${{ github.repository }}-${{ github.event.number }} | |
| cancel-in-progress: true | |
| jobs: | |
| Bench-Build-Test: | |
| runs-on: ubuntu-latest | |
| container: docker.io/frappe/bench:latest | |
| steps: | |
| - name: Setup Github ENV | |
| run: | | |
| echo "HOME=/home/frappe" >> $GITHUB_ENV | |
| echo "PATH=/home/frappe/.local/bin:$PATH" >> $GITHUB_ENV | |
| - name: Create a new minimal bench | |
| run: bench init frappe-bench --skip-redis-config-generation --no-procfile --skip-assets | |
| - name: Get APP and Build | |
| run: | | |
| cd frappe-bench | |
| bench get-app https://rtbot:${{ secrets.RTBOT_TOKEN }}@github.com/${{ github.repository }} --branch ${{ github.head_ref || github.ref_name }} | |
| - name: Cleanup | |
| if: ${{ always() }} | |
| uses: rtCamp/action-cleanup@master | |