Skip to content

Commit

Permalink
disable rubocop to test branch
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanwi committed Dec 20, 2023
1 parent c8b5e3f commit 6ffb32c
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 28 deletions.
50 changes: 25 additions & 25 deletions .github/actions/test-ruby/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,6 @@ runs:
env:
ENV_PATH: ${{ inputs.ENV_PATH }}

- run: |
cat .env
shell: bash
- name: Run zeitwerk chek
if: inputs.ZEITWERK == 'true'
run: |
Expand All @@ -81,28 +77,32 @@ runs:
# GITHUB_TOKEN: ${{github.token}}
# REPORT_PATH: tmp/brakeman.json

- name: Install Reviewdog
if: inputs.RUBOCOP == 'true'
uses: reviewdog/action-setup@v1

- name: Generate RuboCop report
if: inputs.RUBOCOP == 'true'
uses: d-lebed/[email protected]
with:
options: --format=RdjsonFormatter --out=reviewdog-report.json --format=progress
rdjson_formatter: ${{ inputs.REVIEWDOG }}
preserve_exitcode: false
# - name: Install Reviewdog
# if: inputs.RUBOCOP == 'true'
# uses: reviewdog/action-setup@v1

# - name: Generate RuboCop report
# if: inputs.RUBOCOP == 'true'
# uses: d-lebed/[email protected]
# with:
# options: --format=RdjsonFormatter --out=reviewdog-report.json --format=progress
# rdjson_formatter: ${{ inputs.REVIEWDOG }}
# preserve_exitcode: false

# - name: Post Review
# if: inputs.REVIEWDOG == 'true' && inputs.RUBOCOP == 'true'
# env:
# REVIEWDOG_GITHUB_API_TOKEN: ${{ github.token }}
# run: |
# reviewdog \
# -reporter=github-pr-review \
# -filter-mode=added \
# -f=rdjson \
# < reviewdog-report.json
# shell: bash

- name: Post Review
if: inputs.REVIEWDOG == 'true' && inputs.RUBOCOP == 'true'
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ github.token }}
run: |
reviewdog \
-reporter=github-pr-review \
-filter-mode=added \
-f=rdjson \
< reviewdog-report.json
- run: |
echo "hello"
shell: bash
- name: Split the input variable RUBY_RAKE_COMMANDS into an array and execute
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ jobs:
uses: actions/checkout@v4
with:
repository: signalwire/actions-template
ref: main
ref: ryanwi/rubocop
path: actions

- uses: ./actions/.github/actions/gpg
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ jobs:

CHECK:
name: CI
uses: signalwire/actions-template/.github/workflows/ci-check.yml@main
uses: signalwire/actions-template/.github/workflows/ci-check.yml@ryanwi/rubocop
with:
ENVIRONMENT: ${{ inputs.ENVIRONMENT }}
PROJECT_NAME: ${{ inputs.PROJECT_NAME }}
Expand Down Expand Up @@ -209,7 +209,7 @@ jobs:
BUILD:
name: BUILD
needs: CHECK
uses: signalwire/actions-template/.github/workflows/ci-build.yml@main
uses: signalwire/actions-template/.github/workflows/ci-build.yml@ryanwi/rubocop
with:
ENVIRONMENT: ${{ inputs.ENVIRONMENT }}
PROJECT_NAME: ${{ inputs.PROJECT_NAME }}
Expand Down

0 comments on commit 6ffb32c

Please sign in to comment.