Skip to content

Commit

Permalink
update the correct one
Browse files Browse the repository at this point in the history
  • Loading branch information
nplasterer committed Nov 8, 2024
1 parent b057709 commit 99f3c23
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 23 deletions.
56 changes: 33 additions & 23 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,33 +5,43 @@ on:
- main
pull_request:

env:
GPR_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GPR_USER: ${{ secrets.GITHUB_ACTOR }}

jobs:
library:
name: Lint
static-analysis:
name: Static Analysis
runs-on: ubuntu-latest
steps:
- name: Checkout project sources
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Configure JDK
uses: actions/setup-java@v4
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: '17'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Run build with Gradle Wrapper
run: ./gradlew build
- name: Dry run version bump and tag
id: tag_version
uses: mathieudutour/[email protected]
- name: Gradle Run ktlint
run: ./gradlew ktlintCheck --continue
- uses: actions/upload-artifact@v3
name: Upload ktlint report
if: ${{ failure() }}
with:
name: ktlint
path: '**/build/reports/ktlint/'

- name: Gradle Android lint library
run: ./gradlew :library:lintDebug
- uses: actions/upload-artifact@v3
name: Upload library lint report
if: ${{ failure() }}
with:
name: lint
path: 'app/build/reports/library/lint-results-**.html'

- name: Gradle Android lint example
run: ./gradlew :example:lintDebug
- uses: actions/upload-artifact@v3
name: Upload example lint report
if: ${{ failure() }}
with:
release_branches: "main"
github_token: ${{ secrets.GITHUB_TOKEN }}
dry_run: true
custom_tag: 3.0.1
- name: Log dry run output
run: |
echo "Simulated tag: ${{ steps.tag_version.outputs.new_tag }}"
echo "Simulated version: ${{ steps.tag_version.outputs.new_version }}"
name: lint
path: 'app/build/reports/example/lint-results-**.html'
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
uses: mathieudutour/[email protected]
with:
release_branches: "release"
custom_tag: 3.0.1
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Create a GitHub release
uses: ncipollo/release-action@v1
Expand Down

0 comments on commit 99f3c23

Please sign in to comment.