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: Cancel Previous Runs for the same branch | |
| uses: styfle/[email protected] | |
| with: | |
| access_token: ${{ github.token }} |
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
| build-for-PR: | |
| runs-on: buildjet-4vcpu-ubuntu-2004 | |
| timeout-minutes: 30 |
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: publish preprod apk to App Center | |
| run: appcenter distribute release --app PREPROD_APP_ID | |
| --file app/build/outputs/apk/preprod/release/app-preprod-release.apk | |
| --token ${{secrets.OUR_APPCENTER_TOKEN}} --group GROUP_NAME | |
| timeout-minutes: 1 |
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: Test Report | |
| uses: dorny/test-reporter@v1 | |
| if: always()# run this step even if previous step failed | |
| with: | |
| name: JUnit Tests | |
| path: app/build/test-results/testDevDebugUnitTest/TEST-*.xml# Path to test results | |
| reporter: java-junit# Format of test results | |
| fail-on-error: false |
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: zip build reports | |
| id: zipBuildReports | |
| if: always() | |
| run: cd app/build/reports && zip -r ../../../build-reports.zip ./* && cd - | |
| - name: Upload build reports | |
| if: always() && steps.zipBuildReports.outcome == 'success' | |
| uses: actions/upload-artifact@v2 | |
| with: | |
| name: build-reports |
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: Upload build reports | |
| if: always() | |
| uses: actions/upload-artifact@v2 | |
| with: | |
| name: build-reports | |
| path: app/build/reports |
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
| jobs: | |
| build-for-PR: | |
| runs-on: buildjet-4vcpu-ubuntu-2004 |
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: Send Slack notification | |
| if: always() | |
| uses: 8398a7/action-slack@v3 | |
| with: | |
| status: ${{ job.status }} | |
| fields: repo,message,commit,author,eventName,ref,workflow,job,took,pullRequest | |
| env: | |
| SLACK_WEBHOOK_URL: ${{ secrets.OUR_SLACK_WEBHOOK_URL }} |
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: Remove all decrypted files | |
| if: always() | |
| run: rm rkeystore_destination_path keystore_destination-properties_path github-properties_path |
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
| - uses: actions/setup-node@v2 | |
| with: | |
| node-version: '14' | |
| cache: npm | |
| cache-dependency-path: '**/package-lock.json' | |
| - run: npm install -g appcenter-cli | |
| - name: publish dev apk to App Center | |
| run: appcenter distribute release --app DEV_APP_ID |
NewerOlder