-
Notifications
You must be signed in to change notification settings - Fork 6
CI plans & maven release config #3
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
Merged
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
0c3266e
PR template
64a3d2c
Basic detekt config
56729aa
Detekt config changes with code fixes, readme typo correction
7005005
Build libraries workflow
b449be0
Changed to macos agent due to xcode dependencies needed
4771734
Extended detekt check with review dog
bfdb2db
Workflows update with an gradle-build-action
0ebd834
Detekt reports
a202d74
No detekt reports file
5e28859
Added basic unit test and detekt config
bfcfc40
Report upload
a3707da
macos runner change
e44ea92
Generated detekt config and changed sources directory
e86782e
Publishing maven/nexus config
fb2256d
Sonatype release workflow
7e81b4f
Pull request template update
f2bf3a5
Versions and consts extraction, pom update
1f870ce
Opensource allegro contact info and gh action trigger change
9d5dfb6
open, synchronize pull request trigger
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
## What: | ||
<!--- Describe your changes in detail. --> | ||
* | ||
|
||
## Why: | ||
<!--- Why is this change required? What problem does it solve? --> | ||
* | ||
|
||
## Example: | ||
<!--- Share some code snippets to show the idea in action. --> | ||
* |
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Build libraries | ||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
types: [opened, synchronize] | ||
|
||
jobs: | ||
build: | ||
name: Build libraries | ||
runs-on: macos-latest | ||
KTGypsy marked this conversation as resolved.
Show resolved
Hide resolved
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup Gradle | ||
uses: gradle/gradle-build-action@v2 | ||
|
||
- name: Check | ||
run: ./gradlew detekt | ||
|
||
- name: Build project | ||
run: ./gradlew build | ||
|
||
- name: Build xcframework | ||
run: ./createXCFrameworks.sh |
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Detekt check | ||
on: pull_request | ||
|
||
jobs: | ||
detekt: | ||
runs-on: macos-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
KTGypsy marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v2 | ||
with: | ||
distribution: 'temurin' | ||
java-version: 11 | ||
|
||
- name: Setup Gradle | ||
uses: gradle/gradle-build-action@v2 | ||
|
||
- name: Set up reviewdog | ||
uses: reviewdog/action-setup@v1 | ||
|
||
- name: Run check | ||
run: ./gradlew detekt -i | ||
|
||
- name: 'Upload report' | ||
mkrogulskiallegro2 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: DetektHTMLReport | ||
path: build/reports/detekt/detekt.html | ||
|
||
- name: Run reviewdog | ||
env: | ||
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: cat build/reports/detekt/detekt.xml | reviewdog -f=checkstyle -reporter=github-pr-review |
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Publish | ||
|
||
on: | ||
release: | ||
types: [ created ] | ||
|
||
jobs: | ||
publish: | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v2 | ||
with: | ||
distribution: 'temurin' | ||
java-version: 11 | ||
|
||
- name: Setup Gradle | ||
uses: gradle/gradle-build-action@v2 | ||
|
||
- name: Publish to maven central | ||
run: ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository | ||
env: | ||
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} | ||
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | ||
GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }} | ||
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} | ||
GPG_PRIVATE_KEY_PASSWORD: ${{ secrets.GPG_PRIVATE_KEY_PASSWORD }} |
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
plugins { | ||
`kotlin-dsl` | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
mavenLocal() | ||
KTGypsy marked this conversation as resolved.
Show resolved
Hide resolved
|
||
google() | ||
} |
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
@file:Suppress("SpellCheckingInspection") | ||
|
||
object LibConfig { | ||
const val group = "pl.allegro.mobile" | ||
const val repositoryUrl = "https://github.com/allegro/json-logic-kmp" | ||
const val name = "JsonLogicKMP" | ||
} | ||
|
||
object Versions { | ||
const val kotlin = "1.6.10" | ||
const val axion = "1.13.6" | ||
const val detekt = "1.19.0" | ||
const val nexus = "1.0.0" | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.