Skip to content

Merge pull request #1 from boschglobal/add-kuksa-java-sdk #1

Merge pull request #1 from boschglobal/add-kuksa-java-sdk

Merge pull request #1 from boschglobal/add-kuksa-java-sdk #1

Workflow file for this run

name: Build Main
on:
push:
branches:
- main
jobs:
build-project:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- 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 SDK
run: ./gradlew assemble # Do not chain this command because it writes into a file which needs to be re-read inside the next gradle command
- name: Archive .apk file
uses: actions/upload-artifact@v4
with:
name: kuksa-java-sdk
path: kuksa-java-sdk/build/libs/kuksa-java-sdk-*.jar
if-no-files-found: error
retention-days: 14
- name: Execute Tests
uses: ./.github/actions/run-tests
with:
upload-test-reports: true
upload-code-coverage-reports: true
- name: Archive changelog
uses: actions/upload-artifact@v4
with:
name: CHANGELOG.md
path: CHANGELOG.md
retention-days: 14