Skip to content

Commit b2cfb76

Browse files
Update publish workflow to build only library module & add workflow to build & test library on every PR
1 parent 309fb5c commit b2cfb76

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

.github/workflows/publish_library.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
uses: gradle/actions/setup-gradle@v4
3333

3434
- name: Build with Gradle
35-
run: ./gradlew build
35+
run: ./gradlew :composebroadcasts:build
3636

3737
- name: Publish Library
3838
run: |
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Build & Test Library
2+
on:
3+
pull_request:
4+
5+
jobs:
6+
build_and_test:
7+
name: Build & Test Library
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Checkout repository
12+
uses: actions/checkout@v4
13+
14+
- name: Set up JDK 17
15+
uses: actions/setup-java@v4
16+
with:
17+
java-version: '17'
18+
distribution: 'adopt'
19+
20+
- name: Grant Permission to Execute Gradle
21+
run: chmod +x gradlew
22+
23+
- name: Setup Gradle
24+
uses: gradle/actions/setup-gradle@v4
25+
26+
- name: Build with Gradle
27+
run: ./gradlew :composebroadcasts:build; ./gradlew :composebroadcasts:lint; ./gradlew :composebroadcasts:test

0 commit comments

Comments
 (0)