diff --git a/.github/workflows/review_pull_request.yml b/.github/workflows/review_pull_request.yml index 18fedb04..88a492b6 100644 --- a/.github/workflows/review_pull_request.yml +++ b/.github/workflows/review_pull_request.yml @@ -9,6 +9,7 @@ concurrency: cancel-in-progress: true jobs: + review_pull_request: name: Review pull request runs-on: ubuntu-latest @@ -55,14 +56,6 @@ jobs: ruby-version: '2.7' bundler-cache: true - - name: Cache gems - uses: actions/cache@v2 - with: - path: vendor/bundle - key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} - restore-keys: | - ${{ runner.os }}-gems- - - name: Run Danger env: DANGER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/Gemfile b/Gemfile index 35ad6948..0ceb4ef3 100644 --- a/Gemfile +++ b/Gemfile @@ -1,5 +1,7 @@ source "https://rubygems.org" gem 'danger' -gem "danger-checkstyle_format" gem 'danger-android_lint' +gem 'danger-commit_lint' +gem 'danger-kotlin_detekt' +gem 'danger-shroud' diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 00000000..8e9cd876 --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,117 @@ +GEM + remote: https://rubygems.org/ + specs: + addressable (2.8.1) + public_suffix (>= 2.0.2, < 6.0) + ansi (1.5.0) + ast (2.4.2) + claide (1.1.0) + claide-plugins (0.9.2) + cork + nap + open4 (~> 1.3) + colored2 (3.1.2) + cork (0.3.0) + colored2 (~> 3.1) + danger (8.6.1) + claide (~> 1.0) + claide-plugins (>= 0.9.2) + colored2 (~> 3.1) + cork (~> 0.1) + faraday (>= 0.9.0, < 2.0) + faraday-http-cache (~> 2.0) + git (~> 1.7) + kramdown (~> 2.3) + kramdown-parser-gfm (~> 1.0) + no_proxy_fix + octokit (~> 4.7) + terminal-table (>= 1, < 4) + danger-android_lint (0.0.11) + danger-plugin-api (~> 1.0) + oga + danger-commit_lint (0.0.7) + danger-plugin-api (~> 1.0) + danger-kotlin_detekt (0.0.3) + danger-plugin-api (~> 1.0) + danger-plugin-api (1.0.0) + danger (> 2.0) + danger-shroud (0.0.5) + danger-plugin-api (~> 1.0) + nokogiri + faraday (1.10.2) + faraday-em_http (~> 1.0) + faraday-em_synchrony (~> 1.0) + faraday-excon (~> 1.1) + faraday-httpclient (~> 1.0) + faraday-multipart (~> 1.0) + faraday-net_http (~> 1.0) + faraday-net_http_persistent (~> 1.0) + faraday-patron (~> 1.0) + faraday-rack (~> 1.0) + faraday-retry (~> 1.0) + ruby2_keywords (>= 0.0.4) + faraday-em_http (1.0.0) + faraday-em_synchrony (1.0.0) + faraday-excon (1.1.0) + faraday-http-cache (2.4.1) + faraday (>= 0.8) + faraday-httpclient (1.0.1) + faraday-multipart (1.0.4) + multipart-post (~> 2) + faraday-net_http (1.0.1) + faraday-net_http_persistent (1.2.0) + faraday-patron (1.0.0) + faraday-rack (1.0.0) + faraday-retry (1.0.3) + git (1.13.2) + addressable (~> 2.8) + rchardet (~> 1.8) + kramdown (2.4.0) + rexml + kramdown-parser-gfm (1.1.0) + kramdown (~> 2.0) + multipart-post (2.2.3) + nap (1.1.0) + no_proxy_fix (0.1.2) + nokogiri (1.14.3-arm64-darwin) + racc (~> 1.4) + nokogiri (1.14.3-x86_64-darwin) + racc (~> 1.4) + nokogiri (1.14.3-x86_64-linux) + racc (~> 1.4) + octokit (4.25.1) + faraday (>= 1, < 3) + sawyer (~> 0.9) + oga (3.4) + ast + ruby-ll (~> 2.1) + open4 (1.3.4) + public_suffix (5.0.1) + racc (1.6.2) + rchardet (1.8.0) + rexml (3.2.5) + ruby-ll (2.1.2) + ansi + ast + ruby2_keywords (0.0.5) + sawyer (0.9.2) + addressable (>= 2.3.5) + faraday (>= 0.17.3, < 3) + terminal-table (3.0.2) + unicode-display_width (>= 1.1.1, < 3) + unicode-display_width (2.3.0) + +PLATFORMS + universal-darwin-21 + x86_64-darwin-20 + x86_64-linux + +DEPENDENCIES + danger + danger-android_lint + danger-commit_lint + danger-kotlin_detekt + danger-shroud + +BUNDLED WITH + 2.3.1 diff --git a/template-compose/.github/workflows/template_review_pull_request.yml b/template-compose/.github/workflows/template_review_pull_request.yml index 2082d178..5e556670 100644 --- a/template-compose/.github/workflows/template_review_pull_request.yml +++ b/template-compose/.github/workflows/template_review_pull_request.yml @@ -41,26 +41,8 @@ jobs: - name: Set up Ruby uses: ruby/setup-ruby@v1 with: - ruby-version: '2.7' - bundler-cache: true - - - 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 + ruby-version: '2.7' + bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Run Danger env: