Configure Renovate #226
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: PR Pipeline | |
# Execute PR Pipeline Workflow on pull requests to master | |
on: | |
pull_request: | |
branches: | |
- master | |
jobs: | |
########################################################### | |
# Compile Job: | |
# Install dependencies and compile sources | |
########################################################### | |
compile: | |
name: Compile | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v3 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: '11' | |
- name: Cache Gradle | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} | |
restore-keys: ${{ runner.os }}-gradle- | |
- name: Set up Ruby 2.7 | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 2.7 | |
bundler-cache: true | |
- name: Install Dependencies (RubyGems) | |
run: | | |
gem install bundler | |
bundle config path vendor/bundle | |
bundle config set without 'documentation' | |
bundle install --jobs 4 --retry 3 | |
- name: Run Fastlane Compile | |
run: bundle exec fastlane compile_debug | |
########################################################### | |
# Lint Job: | |
# Install dependencies, execute lint and report with danger | |
########################################################### | |
lint: | |
name: Lint | |
needs: compile | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: write | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v3 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: '11' | |
- name: Cache Gradle | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} | |
restore-keys: ${{ runner.os }}-gradle- | |
- name: Set up Ruby 2.7 | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 2.7 | |
bundler-cache: true | |
- name: Install Dependencies (RubyGems) | |
run: | | |
gem install bundler | |
bundle config path vendor/bundle | |
bundle config set without 'documentation' | |
bundle install --jobs 4 --retry 3 | |
- name: Run Fastlane KtLint | |
run: bundle exec fastlane ktlint | |
- name: Run Fastlane Android Lint | |
run: bundle exec fastlane lint_debug | |
- name: Run Fastlane Lint Reporting with Danger | |
run: bundle exec danger | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
########################################################### | |
# Unit Test Job: | |
# Install dependencies and execute unit tests | |
########################################################### | |
unit_test: | |
name: Unit Tests | |
needs: compile | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v3 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: '11' | |
- name: Cache Gradle | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} | |
restore-keys: ${{ runner.os }}-gradle- | |
- name: Set up Ruby 2.7 | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 2.7 | |
bundler-cache: true | |
- name: Install Dependencies (RubyGems) | |
run: | | |
gem install bundler | |
bundle config path vendor/bundle | |
bundle config set without 'documentation' | |
bundle install --jobs 4 --retry 3 | |
- name: Run Fastlane Unit Tests | |
run: bundle exec fastlane unit_test_debug | |
########################################################### | |
# Assemble Job: | |
# Install dependencies and assemble packages | |
########################################################### | |
assemble: | |
name: Assemble | |
needs: compile | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v3 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: '11' | |
- name: Cache Gradle | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} | |
restore-keys: ${{ runner.os }}-gradle- | |
- name: Set up Ruby 2.7 | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 2.7 | |
bundler-cache: true | |
- name: Install Dependencies (RubyGems) | |
run: | | |
gem install bundler | |
bundle config path vendor/bundle | |
bundle config set without 'documentation' | |
bundle install --jobs 4 --retry 3 | |
- name: Run Fastlane Assemble | |
run: bundle exec fastlane assemble_debug |