From 6ffb32cc93b1e04c5c3c1fb59cdca107f0e0160b Mon Sep 17 00:00:00 2001 From: Ryan Williams Date: Wed, 20 Dec 2023 08:45:10 -0800 Subject: [PATCH] disable rubocop to test branch --- .github/actions/test-ruby/action.yml | 50 ++++++++++++++-------------- .github/workflows/ci-build.yml | 2 +- .github/workflows/ci.yml | 4 +-- 3 files changed, 28 insertions(+), 28 deletions(-) diff --git a/.github/actions/test-ruby/action.yml b/.github/actions/test-ruby/action.yml index 3c261a85..aac86496 100644 --- a/.github/actions/test-ruby/action.yml +++ b/.github/actions/test-ruby/action.yml @@ -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: | @@ -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/rubocop-run-action@v0.10.0 - 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/rubocop-run-action@v0.10.0 + # 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 diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index 7bd9acbc..401189bd 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -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 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f8d932fc..f3e7fee5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 }} @@ -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 }}