diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2ec5a7c..a4d9949 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,6 +7,10 @@ on: pull_request: +permissions: + contents: read + id-token: write + jobs: build: runs-on: ubuntu-latest @@ -26,9 +30,10 @@ jobs: bundler-cache: true - name: Lint with rubocop run: bundle exec rubocop - - name: Test & Publish code coverage - uses: paambaati/codeclimate-action@v3.0.0 - env: - CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}} + - name: Test + run: bundle exec rspec + - name: Publish code coverage + uses: qltysh/qlty-action/coverage@v2 with: - coverageCommand: bundle exec rspec + oidc: true + files: coverage/.resultset.json diff --git a/.qlty/.gitignore b/.qlty/.gitignore new file mode 100644 index 0000000..3036618 --- /dev/null +++ b/.qlty/.gitignore @@ -0,0 +1,7 @@ +* +!configs +!configs/** +!hooks +!hooks/** +!qlty.toml +!.gitignore diff --git a/.qlty/qlty.toml b/.qlty/qlty.toml new file mode 100644 index 0000000..73d1e95 --- /dev/null +++ b/.qlty/qlty.toml @@ -0,0 +1,86 @@ +# This file was automatically generated by `qlty init`. +# You can modify it to suit your needs. +# We recommend you to commit this file to your repository. +# +# This configuration is used by both Qlty CLI and Qlty Cloud. +# +# Qlty CLI -- Code quality toolkit for developers +# Qlty Cloud -- Fully automated Code Health Platform +# +# Try Qlty Cloud: https://qlty.sh +# +# For a guide to configuration, visit https://qlty.sh/d/config +# Or for a full reference, visit https://qlty.sh/d/qlty-toml +config_version = "0" + +exclude_patterns = [ + "*_min.*", + "*-min.*", + "*.min.*", + "**/.yarn/**", + "**/*.d.ts", + "**/assets/**", + "**/bower_components/**", + "**/build/**", + "**/cache/**", + "**/config/**", + "**/db/**", + "**/deps/**", + "**/dist/**", + "**/extern/**", + "**/external/**", + "**/generated/**", + "**/Godeps/**", + "**/gradlew/**", + "**/mvnw/**", + "**/node_modules/**", + "**/protos/**", + "**/seed/**", + "**/target/**", + "**/templates/**", + "**/testdata/**", + "**/vendor/**", +] + +test_patterns = [ + "**/test/**", + "**/spec/**", + "**/*.test.*", + "**/*.spec.*", + "**/*_test.*", + "**/*_spec.*", + "**/test_*.*", + "**/spec_*.*", +] + +[smells] +mode = "comment" + +[[source]] +name = "default" +default = true + + +[[plugin]] +name = "actionlint" + +[[plugin]] +name = "osv-scanner" + +[[plugin]] +name = "ripgrep" +mode = "comment" + +[[plugin]] +name = "rubocop" +version = "1.31.2" + +[[plugin]] +name = "trivy" +drivers = [ + "config", + "fs-vuln", +] + +[[plugin]] +name = "trufflehog" diff --git a/README.md b/README.md index 5777f30..db3329d 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,8 @@ [![Gem Version](https://badge.fury.io/rb/prest.svg)](https://badge.fury.io/rb/prest) [![Ruby](https://github.com/gogrow-dev/prest/actions/workflows/main.yml/badge.svg?branch=main)](https://github.com/gogrow-dev/prest/actions/workflows/main.yml) -[![Maintainability](https://api.codeclimate.com/v1/badges/f81b2e00be4d8eaa5e81/maintainability)](https://codeclimate.com/github/gogrow-dev/prest/maintainability) -[![Test Coverage](https://api.codeclimate.com/v1/badges/f81b2e00be4d8eaa5e81/test_coverage)](https://codeclimate.com/github/gogrow-dev/prest/test_coverage) +[![Maintainability](https://qlty.sh/gh/gogrow-dev/projects/prest/maintainability.svg)](https://qlty.sh/gh/gogrow-dev/projects/prest) +[![Code Coverage](https://qlty.sh/gh/gogrow-dev/projects/prest/coverage.svg)](https://qlty.sh/gh/gogrow-dev/projects/prest) Programmatically communicate with any REST API.