fix: update the maven release command according to new settings #12
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: | |
pull_request: | |
branches: | |
- main | |
paths-ignore: | |
- '*.md' | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- '*.md' | |
env: | |
CI: true | |
GRADLE_OPTS: -Dorg.gradle.daemon=false -Dkotlin.incremental=false | |
TERM: dumb | |
jobs: | |
assemble: | |
name: Assemble | |
runs-on: ubuntu-latest | |
env: | |
JAVA_TOOL_OPTIONS: -Xmx4g | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: gradle/wrapper-validation-action@v1 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v2 | |
with: | |
distribution: 'zulu' | |
java-version: '17' | |
- uses: actions/cache@v2 | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
key: ${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }} | |
restore-keys: | | |
${{ runner.os }}-${{ github.job }}- | |
- run: | | |
./gradlew assembleStagingDebug | |
checks: | |
name: Checks (unit tests and static analysis, TODO:add detekt check after set it up) | |
runs-on: ubuntu-latest | |
env: | |
JAVA_TOOL_OPTIONS: -Xmx4g | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: gradle/wrapper-validation-action@v1 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v2 | |
with: | |
distribution: 'zulu' | |
java-version: '17' | |
- uses: actions/cache@v2 | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
key: ${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }} | |
restore-keys: | | |
${{ runner.os }}-${{ github.job }}- | |
- run: | | |
./gradlew :bundle-tool-plugin:plugin:test | |
# functional-tests: | |
# name: Functional tests | |
# runs-on: ubuntu-latest | |
# env: | |
# JAVA_TOOL_OPTIONS: -Xmx4g | |
# AGP_VERSION: ${{ matrix.agp-version }} | |
# strategy: | |
# matrix: | |
# agp-version: [ 7.1.2 ] | |
# | |
# steps: | |
# - uses: actions/checkout@v2 | |
# - uses: gradle/wrapper-validation-action@v1 | |
# - name: Set up JDK 11 | |
# uses: actions/setup-java@v2 | |
# with: | |
# distribution: 'zulu' | |
# java-version: '11' | |
# - uses: actions/cache@v2 | |
# with: | |
# path: | | |
# ~/.gradle/caches | |
# ~/.gradle/wrapper | |
# key: ${{ runner.os }}-${{ github.job }}-${{ matrix.agp-version }}-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }} | |
# restore-keys: | | |
# ${{ runner.os }}-${{ github.job }}-${{ matrix.agp-version }}- | |
# - run: | | |
# ./gradlew :bundle-tool-plugin:plugin:functionalTest |