Skip to content

ci: Add GitHub Actions workflows and Dependabot config #20

ci: Add GitHub Actions workflows and Dependabot config

ci: Add GitHub Actions workflows and Dependabot config #20

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: ['**']
permissions: {}
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
persist-credentials: false
- uses: actions/setup-java@f2beeb24e141e01a676f977032f5a29d81c9e27e # v5.1.0
with:
distribution: temurin
java-version: '17'
- uses: gradle/actions/setup-gradle@4d9f0ba0025fe599b4ebab900eb7f3a1d93ef4c2 # v5.0.0
- name: Build SDK
run: ./gradlew :device-sdk:build
- name: Run tests
run: ./gradlew :device-sdk:test
- name: Run linting
run: ./gradlew detekt ktlintCheck
- name: Build sample app
run: ./gradlew :sample:assembleDebug
- uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
if: always()
with:
name: test-results
path: device-sdk/build/reports/tests/