[#490] Add release note for Codemagic CD workflow #1470
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: Review pull request | |
on: | |
pull_request: | |
types: [ opened, edited, reopened, synchronize ] | |
jobs: | |
review_pull_request: | |
name: Review pull request | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
environment: template-compose | |
steps: | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v2 | |
with: | |
distribution: 'temurin' | |
java-version: '11' | |
- name: Checkout source code | |
uses: actions/[email protected] | |
- name: Cache Gradle | |
uses: actions/cache@v2 | |
with: | |
path: | | |
~/.gradle/caches/modules-* | |
~/.gradle/caches/jars-* | |
~/.gradle/caches/build-cache-* | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
# template-xml | |
- name: Run Detekt on template-xml | |
working-directory: ./template-xml | |
run: ./gradlew detekt | |
- name: Run Android Lint on template-xml | |
working-directory: ./template-xml | |
run: ./gradlew lint | |
- name: Run unit tests with Kover on template-xml | |
working-directory: ./template-xml | |
run: ./gradlew koverXmlReport | |
# template-compose | |
- name: Run Detekt on template-compose | |
working-directory: ./template-compose | |
run: ./gradlew detekt | |
- name: Run Android Lint on template-compose | |
working-directory: ./template-compose | |
run: ./gradlew lint | |
- name: Run unit tests with Kover on template-compose | |
working-directory: ./template-compose | |
run: ./gradlew koverXmlReport | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '2.7' | |
- name: Cache gems | |
uses: actions/cache@v2 | |
with: | |
path: vendor/bundle | |
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} | |
restore-keys: | | |
${{ runner.os }}-gems- | |
- name: Install Bundle and check environment versions | |
run: | | |
echo 'Install Bundle' | |
bundle config path vendor/bundle | |
bundle install | |
echo 'Check environment setup versions' | |
ruby --version | |
gem --version | |
bundler --version | |
- name: Run Danger | |
env: | |
DANGER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: bundle exec danger |