Skip to content

Commit

Permalink
feature: Provide KUKSA Companion App in Build PR Pipeline
Browse files Browse the repository at this point in the history
Closes: #31
Signed-off-by: Andre Weber <andre.weber3@etas.com>
  • Loading branch information
wba2hi committed Dec 8, 2023
1 parent bc48cc1 commit e0f6e84
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 2 deletions.
32 changes: 31 additions & 1 deletion .github/workflows/build-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,36 @@ name: Validate pull request
on:
pull_request

env:
GPR_USERNAME: ${{ github.actor }}
GPR_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
build-project:
validate-project:
uses: ./.github/workflows/reusable-build-validation.yaml

build-project:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup Project
uses: ./.github/actions/setup-project

- name: Update Version
run: npm run bump-release # Updates the semantic version depending on the last commits e.g. feature / bugfix

- name: Set Snapshot Version
run: ./gradlew setSnapshotVersion # Do not chain this command because it writes into a file which needs to be re-read inside the next gradle command

- name: Build 'assembleDebug' with Gradle Wrapper
run: ./gradlew assembleDebug

- name: Archive .apk file
uses: actions/upload-artifact@v3
with:
name: kuksa_companion_app.snapshot.apk
path: app/build/outputs/apk/debug/app-debug.apk
if-no-files-found: error
retention-days: 14
2 changes: 1 addition & 1 deletion .github/workflows/reusable-build-validation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_call:

jobs:
build-project:
validate-project:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit e0f6e84

Please sign in to comment.