Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: introduce checks #6

Merged
merged 2 commits into from
Feb 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/actionlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
name: Actions Linter

on:
pull_request:
paths:
- '.github/**'

jobs:
actionlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: actionlint
uses: raven-actions/actionlint@v1
30 changes: 30 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
name: Check

on:
workflow_call:
inputs:
projectDir:
description: "project to be checked (path to project directory)"
type: string
required: false
default: '.'

jobs:
gradle-check:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'

- name: Set up Gradle
uses: gradle/actions/setup-gradle@v3

- name: Check with Gradle
run: ./gradlew -p ${{ inputs.projectDir }} clean check
13 changes: 13 additions & 0 deletions .github/workflows/java-example-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
name: Java Example check

on:
pull_request:
paths:
- 'examples/java/**'

jobs:
call-check:
uses: ./.github/workflows/check.yml
with:
projectDir: 'examples/java'
13 changes: 13 additions & 0 deletions .github/workflows/kotlin-example-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
name: Kotlin Example check

on:
pull_request:
paths:
- 'examples/kotlin/**'

jobs:
call-check:
uses: ./.github/workflows/check.yml
with:
projectDir: 'examples/kotlin'
12 changes: 12 additions & 0 deletions .github/workflows/loxone-client-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
name: Loxone Client Kotlin check

on:
pull_request:
paths:
- '.*gradle.*'
- 'src/**'

jobs:
call-check:
uses: ./.github/workflows/check.yml
Loading