Skip to content

Commit cf3aeac

Browse files
committed
Add GitHub workflow to validate samples
1 parent 5cc6523 commit cf3aeac

File tree

1 file changed

+3
-21
lines changed

1 file changed

+3
-21
lines changed

.github/workflows/samples.yml

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ on:
1414
concurrency:
1515
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
1616
# Cancel only when the run is NOT on `main` branch
17-
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
17+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
1818

1919
jobs:
2020
build:
@@ -45,32 +45,14 @@ jobs:
4545
add-job-summary: 'always'
4646
cache-read-only: true
4747

48-
- name: Build with Gradle
49-
working-directory: matrix.sample
50-
run: |-
51-
./../../gradlew --no-daemon --rerun-tasks \
52-
clean \
53-
ktlintCheck \
54-
build \
55-
koverLog koverHtmlReport \
56-
publishToMavenLocal
57-
5848
- name: "Build Sample: ${{ matrix.sample }}"
5949
working-directory: ./samples/${{ matrix.sample }}
60-
run: ./../../gradlew --no-daemon --rerun-tasks clean build
50+
run: ./../../gradlew --no-daemon clean build
6151

6252
- name: Upload Reports
6353
if: ${{ !cancelled() }}
6454
uses: actions/upload-artifact@v4
6555
with:
66-
name: reports
56+
name: reports-${{ matrix.sample }}
6757
path: |
6858
**/build/reports/
69-
70-
- name: Disable Auto-Merge on Fail
71-
if: failure() && github.event_name == 'pull_request'
72-
run: gh pr merge --disable-auto "$PR_URL"
73-
env:
74-
PR_URL: ${{github.event.pull_request.html_url}}
75-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
76-

0 commit comments

Comments
 (0)