This repository has been archived by the owner on Aug 5, 2024. It is now read-only.
version function is not used since 06c2574b1129256ab42c95f3b9aeb8261a49d728 #12
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: CI | |
on: [pull_request] | |
jobs: | |
test-skip-install-and-use-bundler: | |
name: runner / rubocop | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: test/using_bundler | |
env: | |
BUNDLE_GEMFILE: ${{ github.workspace }}/test/using_bundler/Gemfile | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Fetch all commits for PR branch plus head commit of base branch | |
run: | | |
# fetch all commits of the PR branch | |
git fetch --shallow-exclude "${{ github.base_ref }}" origin "${{ github.head_ref }}" | |
# fix for "fatal: error in object: unshallow" | |
git repack -d | |
# fetch head commit of base branch | |
git fetch --deepen 1 origin "${{ github.head_ref }}" | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 2.6 | |
bundler-cache: true | |
- name: rubocop with skip install and using bundler | |
uses: ./ | |
with: | |
github_token: ${{ secrets.github_token }} | |
skip_install: 'true' | |
use_bundler: 'true' | |
- run: test "$(bundle exec rubocop --version)" == "1.18.1" |