-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b057709
commit 99f3c23
Showing
2 changed files
with
34 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|