-
Notifications
You must be signed in to change notification settings - Fork 93
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
Showing
87 changed files
with
1,645 additions
and
17,235 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
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -18,11 +18,19 @@ jobs: | |
validate_android: | ||
name: Gradle Lint | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: ./android | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Checkout Code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Clear up some disk space | ||
run: | | ||
sudo rm -rf /usr/share/dotnet | ||
sudo rm -rf /opt/ghc | ||
- name: Setup Bun | ||
uses: oven-sh/setup-bun@v2 | ||
with: | ||
bun-version: 1.1.26 | ||
|
||
- name: Setup JDK | ||
uses: actions/setup-java@v4 | ||
|
@@ -33,28 +41,18 @@ jobs: | |
|
||
- name: Setup Android SDK | ||
uses: android-actions/setup-android@v3 | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
- run: corepack enable | ||
accept-android-sdk-licenses: true | ||
log-accepted-android-sdk-licenses: false | ||
|
||
- name: Get yarn cache directory path | ||
id: yarn-cache-dir-path | ||
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT | ||
- name: Bootstrap JS (rnqc) | ||
run: | | ||
bun install | ||
- name: Restore node_modules from cache | ||
uses: actions/cache@v4 | ||
id: yarn-cache | ||
with: | ||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn- | ||
- name: Install node_modules | ||
run: yarn install --frozen-lockfile --cwd .. | ||
- name: Install node_modules for example/ | ||
run: yarn install --frozen-lockfile --cwd ../example | ||
- name: Bootstrap JS (example) | ||
working-directory: example | ||
run: | | ||
bun install | ||
- name: Restore Gradle cache | ||
uses: actions/cache@v4 | ||
|
@@ -67,19 +65,10 @@ jobs: | |
${{ runner.os }}-gradle- | ||
- name: Run Gradle Lint | ||
run: cd ../example/android && ./gradlew lint | ||
run: cd example/android && ./gradlew lint | ||
|
||
- name: Parse Gradle Lint Report | ||
uses: yutailang0119/action-android-lint@v4 | ||
with: | ||
# ignore-warnings: true | ||
report-path: example/android/app/build/reports/*.xml | ||
# ktlint: | ||
# name: Kotlin Lint | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
# - name: Run KTLint | ||
# uses: mrousavy/[email protected] | ||
# with: | ||
# github_token: ${{ secrets.github_token }} |
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
Oops, something went wrong.