Skip to content

Commit

Permalink
Refactor: Streamline and Enhance actionsBuild Workflow
Browse files Browse the repository at this point in the history
The actionsBuild workflow has been streamlined by removing the matrix strategy for the jobLint job, now only running on the latest Ubuntu. Permissions have been added to allow write access for jobLint. The job now runs ktlintFormat prior to ciLint, and the Gradle Wrapper is now automatically updated to the latest version within the workflow, followed by automatic committing of this change.
  • Loading branch information
siarhei-luskanau committed Nov 25, 2024
1 parent e7dab9c commit 1230fef
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/actionsBuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,9 @@ jobs:


jobLint:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ macos-latest, ubuntu-latest ]
runs-on: ubuntu-latest
permissions:
contents: write
steps:

- uses: actions/checkout@v4
Expand All @@ -33,10 +31,11 @@ jobs:

- uses: gradle/actions/setup-gradle@v4

- run: ./gradlew ciLint --stacktrace
- run: ./gradlew ktlintFormat ciLint --stacktrace

- name: Update Gradle Wrapper
uses: gradle-update/update-gradle-wrapper-action@v2
- run: ./gradlew wrapper --gradle-version latest --stacktrace

- uses: stefanzweifel/git-auto-commit-action@v5



Expand Down

0 comments on commit 1230fef

Please sign in to comment.