Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[0.1x] skip rubocop and yard linting on faraday 0.1x related branches #1056

Merged
merged 2 commits into from
Oct 17, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 5 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
pull_request:

push:
branches: [master]
branches: [master, 0.1x]

env:
GIT_COMMIT_SHA: ${{ github.sha }}
Expand All @@ -27,11 +27,13 @@ jobs:
run: |
gem install rubocop rubocop-performance --no-document
rubocop --require rubocop-performance --format progress
if: github.ref != '0.1x' && github.base_ref != '0.1x'

- name: Yard-Junk
run: |
gem install yard-junk --no-document
yard-junk --path lib
if: github.ref != '0.1x' && github.base_ref != '0.1x'

build:
needs: [linting]
Expand All @@ -58,7 +60,7 @@ jobs:
bundle install --jobs 4 --retry 3

- name: Setup Code Climate
if: matrix.ruby == '2.6.x'
if: matrix.ruby == '2.6.x' && github.ref != '0.1x' && github.base_ref != '0.1x'
run: |
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
Expand All @@ -68,6 +70,6 @@ jobs:
run: bundle exec rake

- name: Run Code Climate Test Reporter
if: success() && matrix.ruby == '2.6.x'
if: success() && matrix.ruby == '2.6.x' && github.ref != '0.1x' && github.base_ref != '0.1x'
run: ./cc-test-reporter after-build --coverage-input-type simplecov --exit-code $?
continue-on-error: true