Skip to content

Commit

Permalink
improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Garzas committed Jun 27, 2024
1 parent e048f38 commit 0817bd6
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 29 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/codestyle.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
name: "Check Codestyle"

on: [workflow_call]
on:
workflow_call:
inputs:
runs-on:
description: 'Runner type'
required: true
type: string

jobs:
static-code-analysis:
runs-on: ubuntu-latest
java-gradle-setup:
uses: ./.github/workflows/shared/setup-java-gradle.yml
with:
runs-on: ubuntu-latest
static-code-analysis:
runs-on: ubuntu-latest
needs: [ java-gradle-setup ]
steps:
- name: Run Detekt
run: |
Expand Down
36 changes: 19 additions & 17 deletions .github/workflows/generate-dokka.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,25 @@ on:
workflow_dispatch:

jobs:
publish:
java-gradle-setup:
uses: ./.github/workflows/shared/setup-java-gradle.yml
with:
runs-on: ubuntu-latest
steps:
- uses: ./.github/workflows/shared/setup-java-gradle.yml
with:
runs-on: ubuntu-latest
publish:
runs-on: ubuntu-latest
needs: [ java-gradle-setup ]
steps:

- name: Generate Dokka docs
run: make doc/generate-kdocs
env:
GITHUB_USER: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Generate Dokka docs
run: make doc/generate-kdocs
env:
GITHUB_USER: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Deploy docs 🚀
uses: JamesIves/[email protected]
with:
branch: gh-pages
clean: false
folder: build/dokka/htmlMultiModule
target-folder: docs
- name: Deploy docs 🚀
uses: JamesIves/[email protected]
with:
branch: gh-pages
clean: false
folder: build/dokka/htmlMultiModule
target-folder: docs
4 changes: 0 additions & 4 deletions .github/workflows/gradle-android-instrumented-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ jobs:
api-level: [ 34 ]

steps:
- uses: ./.github/workflows/shared/setup-java-gradle.yml
with:
runs-on: ubuntu-latest

- name: AVD cache
uses: actions/cache@v4
id: avd-cache
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/gradle-android-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ concurrency:
jobs:
detekt:
uses: ./.github/workflows/codestyle.yml
with:
runs-on: ubuntu-latest
gradle-run-tests:
needs: [ detekt ]
runs-on: ubuntu-latest

steps:
- name: Build the samples
env:
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/gradle-ios-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,13 @@ concurrency:
jobs:
detekt:
uses: ./.github/workflows/codestyle.yml
with:
runs-on: macos-latest
gradle-run-tests:
needs: [detekt]
runs-on: macos-latest

steps:
- uses: ./.github/workflows/shared/setup-java-gradle.yml
with:
runs-on: macos-latest

- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
Expand Down

0 comments on commit 0817bd6

Please sign in to comment.