This repository has been archived by the owner on Aug 5, 2024. It is now read-only.
Fetch all needed commits for ci workflow #4
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: | | |
git repack -d | |
git fetch --shallow-exclude "${{ github.base_ref }}" 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" |