|
5 | 5 | pull_request: |
6 | 6 |
|
7 | 7 | jobs: |
8 | | - build: |
9 | | - runs-on: ubuntu-latest |
| 8 | + build: |
| 9 | + runs-on: ubuntu-latest |
| 10 | + steps: |
| 11 | + - name: Checkout project |
| 12 | + uses: actions/checkout@v4 |
10 | 13 |
|
11 | | - steps: |
12 | | - - uses: actions/checkout@v3 |
13 | | - - uses: actions/setup-java@v3 |
14 | | - with: |
15 | | - java-version: '17' |
16 | | - distribution: 'zulu' |
17 | | - - uses: gradle/gradle-build-action@v2 |
18 | | - - name: Build and run unit tests with Gradle |
19 | | - run: ./scripts/ci_unit.sh |
20 | | - - name: Build javadocs |
21 | | - run: ./gradlew :dokkaHtmlMultiModule |
22 | | - - name: Publish a source snapshot to Sonatype |
23 | | - env: |
24 | | - NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }} |
25 | | - NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }} |
26 | | - if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' && github.repository == 'bumptech/glide' }} |
27 | | - run: ./gradlew publish -PNEXUS_USERNAME="${NEXUS_USERNAME}" -PNEXUS_PASSWORD="${NEXUS_PASSWORD}" |
| 14 | + - name: Setup Java |
| 15 | + uses: actions/setup-java@v4 |
| 16 | + with: |
| 17 | + distribution: "zulu" |
| 18 | + java-version: "17" |
28 | 19 |
|
| 20 | + - name: Setup Gradle |
| 21 | + uses: gradle/actions/setup-gradle@v4 |
| 22 | + |
| 23 | + - name: Run Gradle Build |
| 24 | + run: | |
| 25 | + ./gradlew build \ |
| 26 | + -x :library:test:testDebugUnitTest \ |
| 27 | + :library:test:assembleDebugUnitTest \ |
| 28 | + -x :library:testDebugUnitTest \ |
| 29 | + :library:assembleDebugUnitTest \ |
| 30 | + -x :annotation:ksp:test:testDebugUnitTest \ |
| 31 | + :annotation:ksp:test:assembleDebugUnitTest \ |
| 32 | + -x :third_party:disklrucache:testDebugUnitTest \ |
| 33 | + :third_party:disklrucache:assembleDebugUnitTest \ |
| 34 | + -x :integration:cronet:testDebugUnitTest \ |
| 35 | + :integration:cronet:assembleDebugUnitTest \ |
| 36 | + -x :integration:gifencoder:testDebugUnitTest \ |
| 37 | + :integration:gifencoder:assembleDebugUnitTest \ |
| 38 | + -x :integration:ktx:testDebugUnitTest \ |
| 39 | + :integration:ktx:assembleDebugUnitTest \ |
| 40 | + -x :integration:concurrent:testDebugUnitTest \ |
| 41 | + :integration:concurrent:assembleDebugUnitTest \ |
| 42 | + -x :integration:volley:testDebugUnitTest \ |
| 43 | + :integration:volley:assembleDebugUnitTest \ |
| 44 | + -x :integration:sqljournaldiskcache:testDebugUnitTest \ |
| 45 | + :integration:sqljournaldiskcache:assembleDebugUnitTest \ |
| 46 | + -x :third_party:gif_decoder:testDebugUnitTest \ |
| 47 | + :third_party:gif_decoder:assembleDebugUnitTest \ |
| 48 | + :samples:flickr:build \ |
| 49 | + :samples:giphy:build \ |
| 50 | + :samples:contacturi:build \ |
| 51 | + :samples:gallery:build \ |
| 52 | + :samples:imgur:build \ |
| 53 | + :samples:svg:build \ |
| 54 | + :instrumentation:assembleAndroidTest \ |
| 55 | + :benchmark:assembleAndroidTest \ |
| 56 | + :glide:releaseJavadoc \ |
| 57 | + :annotation:ksp:test:test \ |
| 58 | + :integration:ktx:apiCheck \ |
| 59 | + :annotation:ksp:integrationtest:test \ |
| 60 | + --parallel |
0 commit comments