Bump com.squareup.moshi:moshi from 1.15.0 to 1.15.1 (#107) #333
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
name: CI | |
on: | |
# Only run push on main | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- 'docs/**' | |
- '*.md' | |
# Always run on PRs | |
pull_request: | |
merge_group: | |
jobs: | |
build: | |
# Necessary for ResultProcessorTest.testExecuteCommandWithStderr | |
runs-on: 'macos-latest' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Gradle Wrapper Validation | |
uses: gradle/wrapper-validation-action@v2 | |
- name: Install JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: '20' | |
- name: Build and test | |
uses: gradle/gradle-build-action@v2 | |
with: | |
arguments: check | |
- name: (Fail-only) Upload build reports | |
if: failure() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: reports | |
path: | | |
**/build/reports/** | |
- name: Upload snapshot (main only) | |
env: | |
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SonatypeUsername }} | |
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SonatypePassword }} | |
run: | | |
./gradlew publish | |
if: success() && github.ref == 'refs/heads/main' && github.event_name != 'pull_request' |