Deprecating Bento #140
Workflow file for this run
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: Pull request | |
on: pull_request | |
jobs: | |
commitsar: | |
runs-on: [ubuntu-latest] | |
name: Verify commit messages | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Run commitsar | |
uses: docker://commitsar/commitsar | |
checks: | |
runs-on: [ubuntu-latest] | |
name: Run checks | |
steps: | |
- name: Install Java 17 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'corretto' | |
java-version: '17' | |
- name: Checkout Repo | |
uses: actions/checkout@v3 | |
- name: Cache Gradle Folders | |
uses: actions/cache@v2 | |
with: | |
path: | | |
~/.gradle/caches/ | |
~/.gradle/wrapper/ | |
key: cache-gradle-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }} | |
restore-keys: | | |
cache-gradle- | |
- name: Delete Maven Settings file | |
run: rm ~/.m2/settings.xml | |
- name: Run check | |
run: ./gradlew check | |
assemble: | |
runs-on: [ubuntu-latest] | |
name: Assemble the project | |
steps: | |
- name: Install Java 17 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'corretto' | |
java-version: '17' | |
- name: Checkout Repo | |
uses: actions/checkout@v3 | |
- name: Cache Gradle Folders | |
uses: actions/cache@v2 | |
with: | |
path: | | |
~/.gradle/caches/ | |
~/.gradle/wrapper/ | |
key: cache-gradle-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }} | |
restore-keys: | | |
cache-gradle- | |
- name: Delete Maven Settings file | |
run: rm ~/.m2/settings.xml | |
- name: Run assembleDebug | |
run: ./gradlew assembleDebug --stacktrace --scan | |
publishToMavenLocal: | |
runs-on: [ubuntu-latest] | |
name: Publish to Maven local | |
steps: | |
- name: Install Java 17 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'corretto' | |
java-version: '17' | |
- name: Checkout Repo | |
uses: actions/checkout@v3 | |
- name: Cache Gradle Folders | |
uses: actions/cache@v2 | |
with: | |
path: | | |
~/.gradle/caches/ | |
~/.gradle/wrapper/ | |
key: cache-gradle-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }} | |
restore-keys: | | |
cache-gradle- | |
- name: Delete Maven Settings file | |
run: rm ~/.m2/settings.xml | |
- name: Run publishToMavenLocal | |
run: ./gradlew publishToMavenLocal |