chore(deps): update dependency org.danilopianini.gradle-kotlin-qa:org.danilopianini.gradle-kotlin-qa.gradle.plugin to v0.78.0 #496
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 + CD | |
on: | |
push: | |
branches: | |
- 'master' | |
paths-ignore: | |
- 'README.md' | |
- 'CHANGELOG.md' | |
- '.github/renovate.json' | |
- 'licenses/**' | |
pull_request: | |
jobs: | |
CI: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [windows-latest, ubuntu-latest, macos-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout repository | |
uses: actions/[email protected] | |
with: | |
token: ${{ secrets.GH_TOKEN }} | |
fetch-depth: 0 | |
- name: Validate Gradle Wrapper | |
uses: gradle/[email protected] | |
- name: Setup JDK | |
uses: actions/[email protected] | |
with: | |
distribution: 'temurin' | |
java-version: '11' | |
- name: Setup Gradle and Build | |
uses: gradle/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | |
with: | |
arguments: build | |
- name: Upload Coverage | |
if: matrix.os == 'ubuntu-latest' | |
uses: codecov/[email protected] | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: ./tests/build/reports/jacoco/testCodeCoverageReport/testCodeCoverageReport.xml | |
- name: Analyze Sonar | |
if: matrix.os == 'ubuntu-latest' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
run: ./gradlew clean sonar | |
CD: | |
if: github.ref_name == 'master' | |
needs: CI | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/[email protected] | |
with: | |
token: ${{ secrets.GH_TOKEN }} | |
fetch-depth: 0 | |
- name: Import GPG key | |
uses: crazy-max/[email protected] | |
with: | |
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} | |
passphrase: ${{ secrets.GPG_PASSPHRASE }} | |
git_user_signingkey: true | |
git_commit_gpgsign: true | |
- name: Setup Gradle | |
uses: gradle/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | |
- name: Publish Release To Github | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
GIT_COMMITTER_NAME: Mirko Felice | |
GIT_COMMITTER_EMAIL: [email protected] | |
GIT_AUTHOR_NAME: Mirko Felice | |
GIT_AUTHOR_EMAIL: [email protected] | |
run: | | |
npm install | |
npx semantic-release | |
- name: Publish Release To Maven | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | |
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.GPG_PRIVATE_KEY }} | |
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.GPG_PASSPHRASE }} | |
ORG_GRADLE_PROJECT_mavenUsername: ${{ secrets.MAVEN_USERNAME }} | |
ORG_GRADLE_PROJECT_mavenPassword: ${{ secrets.MAVEN_PASSWORD }} | |
GRADLE_PUBLISH_KEY: ${{ secrets.GRADLE_PUBLISH_KEY }} | |
GRADLE_PUBLISH_SECRET: ${{ secrets.GRADLE_PUBLISH_SECRET }} | |
run: ./gradlew publish publishPlugins --no-parallel |