diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e0f1587..98fa800 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,56 +20,5 @@ jobs: github_token: ${{ secrets.github_token }} skip_install: 'true' use_bundler: 'true' + filter_mode: nofilter - run: test "$(bundle exec rubocop --version)" == "1.65.0" - test-only_changed: - runs-on: ubuntu-latest - defaults: - run: - shell: bash - env: - INPUT_ONLY_CHANGED: 'true' - steps: - - uses: actions/checkout@v4 - - name: setup - run: | - git config user.email "workflow@github.com" - git config user.name "I am an automated workflow" - - name: Check when there are relevant files - run: | - git checkout ${{ github.sha }} - rm -f test/only_changed/reviewdog-was-called - - cp test/only_changed/few_relevant/files/* . - git add * - git commit -m auto - - export PATH=test/only_changed/few_relevant/mock_bins:test/only_changed/shared_mock_bins:$PATH - BASE_REF=$(git rev-parse HEAD~) HEAD_REF=$(git rev-parse HEAD) ./script.sh - - [ -f test/only_changed/reviewdog-was-called ] - - name: Check when there are no relevant files - run: | - git checkout ${{ github.sha }} - rm -f test/only_changed/reviewdog-was-called - - cp test/only_changed/nothing_relevant/files/* . - git add * - git commit -m auto - - export PATH=test/only_changed/nothing_relevant/mock_bins:test/only_changed/shared_mock_bins:$PATH - BASE_REF=$(git rev-parse HEAD~) HEAD_REF=$(git rev-parse HEAD) ./script.sh - - [ ! -f test/only_changed/reviewdog-was-called ] - - name: Check when there are too many relevant files - run: | - git checkout ${{ github.sha }} - rm -f test/only_changed/reviewdog-was-called - - touch a{00..100}.rb - git add * - git commit -m auto - - export PATH=test/only_changed/too_many_relevant/mock_bins:test/only_changed/shared_mock_bins:$PATH - BASE_REF=$(git rev-parse HEAD~) HEAD_REF=$(git rev-parse HEAD) ./script.sh - - [ -f test/only_changed/reviewdog-was-called ] diff --git a/script.sh b/script.sh index 2a69a4c..bbf39e0 100755 --- a/script.sh +++ b/script.sh @@ -125,7 +125,7 @@ echo '::group:: Running rubocop with reviewdog 🐶 ...' ${BUNDLE_EXEC}rubocop \ --require ${GITHUB_ACTION_PATH}/rdjson_formatter/rdjson_formatter.rb \ --format RdjsonFormatter \ - --fail-level error \ + --fail-level info \ ${INPUT_RUBOCOP_FLAGS} \ "${CHANGED_FILES[@]}" \ | reviewdog -f=rdjson \