-
Notifications
You must be signed in to change notification settings - Fork 5
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
cbbec08
commit 9fc3f6c
Showing
3 changed files
with
102 additions
and
11 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 |
---|---|---|
|
@@ -16,11 +16,31 @@ jobs: | |
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
check: | ||
assemble: | ||
runs-on: macos-14 | ||
steps: | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | ||
|
||
- uses: actions/[email protected] | ||
with: | ||
distribution: 'zulu' | ||
java-version-file: .ci-java-version | ||
|
||
- uses: gradle/[email protected] | ||
|
||
- name: Setup Gradle | ||
uses: gradle/actions/setup-gradle@v3 | ||
with: | ||
gradle-version: wrapper | ||
gradle-home-cache-cleanup: true | ||
|
||
- name: Run assemble task | ||
run: ./gradlew assemble | ||
|
||
detekt: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4.1.1 | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | ||
|
||
- uses: actions/[email protected] | ||
with: | ||
|
@@ -35,14 +55,84 @@ jobs: | |
gradle-version: wrapper | ||
gradle-home-cache-cleanup: true | ||
|
||
- name: Run checks | ||
run: ./format --no-format && ./gradlew check detektAppleMain detektJvmMain detektCommonJsMain detektMetadataMain -x wasmBrowserTest -x wasmNodeTest | ||
- name: Run detekt | ||
run: ./gradlew detektAll | ||
|
||
detekt-apple: | ||
runs-on: macos-14 | ||
steps: | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | ||
|
||
- uses: actions/[email protected] | ||
with: | ||
distribution: 'zulu' | ||
java-version-file: .ci-java-version | ||
|
||
- uses: gradle/[email protected] | ||
|
||
checkWindows: | ||
- name: Setup Gradle | ||
uses: gradle/actions/setup-gradle@v3 | ||
with: | ||
gradle-version: wrapper | ||
gradle-home-cache-cleanup: true | ||
|
||
- name: Run detekt for apple targets | ||
run: ./gradlew detektAppleMain detektAppleTest | ||
|
||
detekt-windows: | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | ||
|
||
- uses: actions/[email protected] | ||
with: | ||
distribution: 'zulu' | ||
java-version-file: .ci-java-version | ||
|
||
- uses: gradle/[email protected] | ||
|
||
- name: Setup Gradle | ||
uses: gradle/actions/setup-gradle@v3 | ||
with: | ||
gradle-version: wrapper | ||
gradle-home-cache-cleanup: true | ||
|
||
- name: Run detekt for windows targets | ||
run: ./gradlew detektMingwMain detektMingwTest | ||
|
||
ktlint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | ||
|
||
- name: Run ktlint | ||
run: ./format --no-format | ||
|
||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | ||
|
||
- uses: actions/[email protected] | ||
with: | ||
distribution: 'zulu' | ||
java-version-file: .ci-java-version | ||
|
||
- uses: gradle/[email protected] | ||
|
||
- name: Setup Gradle | ||
uses: gradle/actions/setup-gradle@v3 | ||
with: | ||
gradle-version: wrapper | ||
gradle-home-cache-cleanup: true | ||
|
||
- name: Run checks | ||
run: ./gradlew lintRelease | ||
|
||
test: | ||
runs-on: macos-14 | ||
steps: | ||
- uses: actions/checkout@v4.1.1 | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | ||
|
||
- uses: actions/[email protected] | ||
with: | ||
|
@@ -58,7 +148,7 @@ jobs: | |
gradle-home-cache-cleanup: true | ||
|
||
- name: Run checks | ||
run: ./gradlew mingwX64Test detektMingwX64Main | ||
run: ./gradlew allTests -x wasmBrowserTest -x wasmNodeTest -x testDebug | ||
|
||
env: | ||
GRADLE_OPTS: -Dorg.gradle.daemon=false -Dkotlin.incremental=false -Dorg.gradle.jvmargs="-Xmx4g -Xms512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:MaxMetaspaceSize=1024m" |
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
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