JsonArray.of & JsonObject.of #1425
Workflow file for this run
This file contains hidden or 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
| # For security reasons this is a separate GitHub workflow, see https://github.com/google/gson/issues/2429#issuecomment-1622522842 | |
| # Once https://github.com/mojohaus/animal-sniffer/issues/252 or https://github.com/mojohaus/animal-sniffer/pull/253 | |
| # are resolved, can consider adjusting pom.xml to include this as part of normal Maven build | |
| name: Check Android compatibility | |
| on: | |
| push: | |
| branches-ignore: | |
| # Ignore Dependabot branches because it will also open a pull request, which would cause the | |
| # workflow to redundantly run twice | |
| - dependabot/** | |
| pull_request: | |
| permissions: | |
| contents: read # to fetch code (actions/checkout) | |
| env: | |
| # Common Maven arguments | |
| MAVEN_ARGS: --show-version --batch-mode --no-transfer-progress | |
| jobs: | |
| check-android-compatibility: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| - name: Set up JDK | |
| uses: actions/setup-java@f2beeb24e141e01a676f977032f5a29d81c9e27e # v5.1.0 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '17' | |
| cache: 'maven' | |
| - name: Check Android compatibility | |
| run: | | |
| mvn compile animal-sniffer:check@check-android-compatibility -Dmaven.test.skip --projects '!metrics,!test-graal-native-image,!test-jpms,!test-shrinker' |