Cleanup and test PRs

This commit is contained in:
Syer10
2024-09-02 11:08:49 -04:00
parent 549f87a269
commit 6434800ef1
7 changed files with 16 additions and 68 deletions

View File

@@ -10,34 +10,24 @@ concurrency:
cancel-in-progress: true
jobs:
check_wrapper:
name: Validate Gradle Wrapper
run_tests:
name: Run Tests
runs-on: ubuntu-latest
steps:
- name: Clone repo
uses: actions/checkout@v4
- uses: actions/checkout@v4
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v2
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
architecture: x64
# run_tests:
# name: Run Tests
# runs-on: ubuntu-latest
#
# steps:
# - name: Clone repo
# uses: actions/checkout@v2
#
# - uses: actions/setup-java@v1
# with:
# java-version: '17'
# architecture: x64
#
# - name: Setup Cl
# run: ./scripts/SetupClUnix.sh
#
# - name: Run Tests
# uses: gradle/gradle-build-action@v2
# with:
# arguments: check
- name: Setup Cl
run: ./scripts/SetupClUnix.sh
- name: Set up gradle
uses: gradle/actions/setup-gradle@v3
- name: Build check
run: ./gradlew :desktop:packageUberJarForCurrentOS :android:assembleDebug

View File

@@ -1,37 +0,0 @@
name: Issue closer
on:
issues:
types: [opened, edited, reopened]
jobs:
autoclose:
runs-on: ubuntu-latest
steps:
- name: Autoclose issues
uses: tachiyomiorg/issue-moderator-action@v1
with:
repo-token: ${{ github.token }}
rules: |
[
{
"type": "title",
"regex": ".*<short description>*",
"message": "You did not fill out the description in the title"
},
{
"type": "body",
"regex": ".*DELETE THIS SECTION IF YOU HAVE READ AND ACKNOWLEDGED IT.*",
"message": "The acknowledgment section was not removed"
},
{
"type": "body",
"regex": "(Suwayomi\\-JUI version|Operating System|Desktop Environment|Server Type|Client JVM version|Server JVM version):.*(\\(Example:|<usually).*",
"message": "The requested information was not filled out"
},
{
"type": "body",
"regex": ".*Remove this line after you are done.*",
"message": "The lines requesting to be removed were not removed."
}
]

View File

@@ -40,7 +40,6 @@ abstract class AppComponent(
@SuppressLint("StaticFieldLeak")
private var appComponentInstance: AppComponent? = null
@Suppress("UNRESOLVED_REFERENCE", "EXPRESSION_EXPECTED_PACKAGE_FOUND")
fun getInstance(context: Context) =
appComponentInstance ?: create(context)
.also { appComponentInstance = it }

View File

@@ -15,7 +15,6 @@ import de.jensklingenberg.ktorfit.Ktorfit
import me.tatarka.inject.annotations.Provides
actual interface SharedDataComponent {
@Provides
fun backupRepositoryOld(ktorfit: Ktorfit) = ktorfit.createBackupRepositoryOld()

View File

@@ -1,4 +1,3 @@
package ca.gosyer.jui.data
expect interface SharedDataComponent

View File

@@ -15,7 +15,6 @@ import de.jensklingenberg.ktorfit.Ktorfit
import me.tatarka.inject.annotations.Provides
actual interface SharedDataComponent {
@Provides
fun backupRepositoryOld(ktorfit: Ktorfit) = ktorfit.createBackupRepositoryOld()

View File

@@ -15,7 +15,6 @@ import de.jensklingenberg.ktorfit.Ktorfit
import me.tatarka.inject.annotations.Provides
actual interface SharedDataComponent {
@Provides
fun backupRepositoryOld(ktorfit: Ktorfit) = ktorfit.createBackupRepositoryOld()