more updates #5
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: | |
# - '**/*.md' | |
# # Always run on PRs | |
# pull_request: | |
# branches: [ main ] | |
# merge_group: | |
# | |
#concurrency: | |
# group: ci-${{ github.ref }}-${{ github.head_ref }} | |
# cancel-in-progress: true | |
# | |
#jobs: | |
# build: | |
# runs-on: macOS-latest | |
# env: | |
# # Test on API 30 because that's the first version with ATDs | |
# API_LEVEL: '30' | |
# AVD_TARGET: 'aosp_atd' | |
# steps: | |
# - name: Checkout | |
# uses: actions/checkout@v3 | |
# with: | |
# lfs: 'true' | |
# | |
# - name: Gradle Wrapper Validation | |
# uses: gradle/wrapper-validation-action@v1 | |
# | |
# # - name: Check LFS files | |
# # uses: actionsdesk/[email protected] | |
# | |
# - name: Install JDK | |
# uses: actions/setup-java@v3 | |
# with: | |
# distribution: 'zulu' | |
# java-version: '17' | |
# | |
# - name: Build and run tests | |
# id: gradle | |
# uses: gradle/gradle-build-action@v2 | |
# with: | |
# arguments: check --continue --no-configuration-cache #testDebugUnitTest | |
# gradle-home-cache-cleanup: true | |
# cache-read-only: false | |
# | |
# - name: (Fail-only) Bundle the build report | |
# if: failure() | |
# run: find . -type d -name 'reports' | zip -@ -r build-reports.zip | |
# | |
# - name: (Fail-only) Upload the build report | |
# if: failure() | |
# uses: actions/upload-artifact@v3 | |
# with: | |
# name: error-report | |
# path: build-reports.zip | |
# | |
## - name: Publish snapshot (main branch only) | |
## if: github.repository == 'slackhq/circuit' && github.ref == 'refs/heads/main' | |
## run: ./gradlew publish -PmavenCentralUsername=${{ secrets.SONATYPEUSERNAME }} -PmavenCentralPassword=${{ secrets.SONATYPEPASSWORD }} --no-configuration-cache |