Prepare next development version of testkit-plugin. #713
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: Main | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- '*.md' | |
- '*.asciidoc' | |
workflow_dispatch: | |
inputs: | |
reason: | |
description: 'Reason for manual run' | |
required: false | |
concurrency: | |
group: build-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
gradle: | |
strategy: | |
matrix: | |
os: [ ubuntu-latest ] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout the repo | |
uses: actions/[email protected] | |
- name: Validate Gradle Wrapper | |
uses: gradle/[email protected] | |
- name: Setup java | |
uses: actions/[email protected] | |
with: | |
distribution: 'zulu' | |
java-version: 17 | |
- name: Execute check (non-functional tests) | |
uses: gradle/gradle-build-action@v3-prerelease | |
with: | |
arguments: 'check -s -x :functionalTest' | |
- name: Execute check (testkit) | |
uses: gradle/gradle-build-action@v3-prerelease | |
with: | |
arguments: '-p testkit/ check -s' | |
- name: Execute JVM functional tests | |
uses: gradle/gradle-build-action@v3-prerelease | |
with: | |
arguments: ':functionalTest -DfuncTest.package=jvm' | |
- name: Execute Android functional tests | |
uses: gradle/gradle-build-action@v3-prerelease | |
with: | |
arguments: ':functionalTest -DfuncTest.package=android' | |
- name: Execute buildHealth for main project | |
uses: gradle/gradle-build-action@v3-prerelease | |
with: | |
arguments: 'buildHealth' | |
- name: Execute buildHealth for testkit project | |
uses: gradle/gradle-build-action@v3-prerelease | |
with: | |
arguments: '-p testkit/ buildHealth' | |
- name: Publish snapshot | |
uses: eskatos/gradle-command-action@v1 | |
env: | |
sonatypeUsername: ${{ secrets.sonatypeUsername }} | |
sonatypePassword: ${{ secrets.sonatypePassword }} | |
with: | |
arguments: ':publishToMavenCentral' |