File tree Expand file tree Collapse file tree 2 files changed +48
-3
lines changed
gradle-plugins/react/brownfield/src/main/kotlin/com/callstack/react/brownfield/plugin Expand file tree Collapse file tree 2 files changed +48
-3
lines changed Original file line number Diff line number Diff line change 1+ name : ktlint and detekt
2+
3+ on :
4+ push :
5+ branches : [ "main" ]
6+ pull_request :
7+ branches : [main]
8+
9+ jobs :
10+ lint :
11+ name : Run Detekt & KtLint
12+ runs-on : ubuntu-latest
13+
14+ steps :
15+ - name : Checkout repository
16+ uses : actions/checkout@v4
17+
18+ - name : Validate Gradle Wrapper
19+ uses : gradle/wrapper-validation-action@v2
20+
21+ - name : Set up JDK
22+ uses : actions/setup-java@v4
23+ with :
24+ distribution : temurin
25+ java-version : 17
26+
27+ - name : Cache Gradle
28+ uses : actions/cache@v4
29+ with :
30+ path : |
31+ ~/.gradle/caches
32+ ~/.gradle/wrapper
33+ key : ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
34+ restore-keys : |
35+ ${{ runner.os }}-gradle-
36+
37+ - name : Run Detekt
38+ working-directory : gradle-plugins/react
39+ run : ./gradlew :brownfield:detekt --no-daemon --stacktrace
40+
41+ - name : Run KtLint
42+ working-directory : gradle-plugins/react
43+ run : ./gradlew :brownfield:ktlintCheck --no-daemon --stacktrace
Original file line number Diff line number Diff line change @@ -46,10 +46,12 @@ object RNSourceSets {
4646 private fun configureSourceSets () {
4747 androidExtension.sourceSets.getByName(" main" ) { sourceSet ->
4848 for (bundlePathSegment in listOf (
49- " createBundleReleaseJsAndAssets" , // outputs for RN <= 0.81
50- " react/release" // outputs for RN >= 0.82
49+ // outputs for RN <= 0.81
50+ " createBundleReleaseJsAndAssets" ,
51+ // outputs for RN >= 0.82
52+ " react/release" ,
5153 )) {
52- sourceSet.assets.srcDirs(" ${ appBuildDir} /generated/assets/$bundlePathSegment " )
54+ sourceSet.assets.srcDirs(" $appBuildDir /generated/assets/$bundlePathSegment " )
5355 sourceSet.res.srcDirs(" $appBuildDir /generated/res/$bundlePathSegment " )
5456 }
5557
You can’t perform that action at this time.
0 commit comments