Skip to content

Commit

Permalink
added trunk check job (#1251)
Browse files Browse the repository at this point in the history
* added trunk check job

* updated yml

* updated yml

* updated yml

* updated build.gradle settings

* updated yml

* updated yml
  • Loading branch information
ygit authored Nov 17, 2023
1 parent cea894d commit 32d3461
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 8 deletions.
28 changes: 21 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ concurrency:

on:
workflow_dispatch:
push:
branches:
- main
pull_request:
types:
- opened
Expand All @@ -23,7 +26,25 @@ on:
- "**.txt"

jobs:
check_lint_errors:
name: Trunk Check Runner
runs-on: ubuntu-latest
# trunk-ignore(checkov/CKV2_GHA_1)
permissions:
checks: write
contents: read

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Trunk Check
uses: trunk-io/trunk-action@v1
with:
post-annotations: true

build_apk:
name: Build APK
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
timeout-minutes: 30
Expand All @@ -35,21 +56,14 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up JDK 11
uses: actions/setup-java@v3
with:
distribution: zulu
java-version: 11.x

- name: Install dependencies
run: cd packages/react-native-room-kit/example/; npm install

- name: Trunk Check
uses: trunk-io/trunk-action
with:
post-annotations: true

- name: Make Gradlew Executable
run: cd packages/react-native-room-kit/example/android && chmod +x ./gradlew

Expand Down
3 changes: 2 additions & 1 deletion .trunk/trunk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ plugins:
uri: https://github.com/trunk-io/plugins
lint:
enabled:
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
Expand All @@ -16,7 +18,6 @@ lint:
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,9 @@ android {
keyPassword 'android'
}
}
packagingOptions {
pickFirst '**/*.so'
}
buildTypes {
debug {
minifyEnabled false
Expand Down

0 comments on commit 32d3461

Please sign in to comment.