diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 28c2be6..c47a6ce 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -3,30 +3,34 @@ name: Checks on: push: branches: - - "**" + - main pull_request: - types: - - opened - - synchronize # when a PR is updated - - reopened # when a PR is reopened - - ready_for_review # when a PR is ready for review - - review_requested # when a PR is requested for review + +permissions: + contents: read + +concurrency: + group: checks-${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true jobs: - ci: + checks: + name: Ruby 4.0 runs-on: ubuntu-latest + timeout-minutes: 10 steps: - - name: Check out - uses: actions/checkout@v4 + - name: Check out repository + uses: actions/checkout@v7 - name: Set up Ruby uses: ruby/setup-ruby@v1 with: + ruby-version: "4.0" bundler-cache: true - - name: Install - run: bundle install + - name: Check syntax + run: bundle exec ruby -c app.rb - - name: Run the application + - name: Run application run: bundle exec ruby app.rb diff --git a/Gemfile b/Gemfile index 388561f..0083d64 100644 --- a/Gemfile +++ b/Gemfile @@ -4,7 +4,7 @@ ruby '>= 3.0.0' # Add your gems here gem 'rake', '~> 13.0' -gem 'featurevisor', '~> 1.0' +gem 'featurevisor', '~> 2.0' group :development do gem 'rubocop', '~> 1.50' diff --git a/Gemfile.lock b/Gemfile.lock index 8dd59bf..d2b71dd 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -3,45 +3,45 @@ GEM specs: ast (2.4.3) benchmark (0.5.0) - featurevisor (1.0.0) - benchmark - json (2.13.2) - language_server-protocol (3.17.0.5) + featurevisor (2.0.0) + benchmark (>= 0, < 1) + json (2.21.1) + language_server-protocol (3.17.0.6) lint_roller (1.1.0) - parallel (1.27.0) - parser (3.3.9.0) + parallel (2.1.0) + parser (3.3.12.0) ast (~> 2.4.1) racc - prism (1.4.0) + prism (1.9.0) racc (1.8.1) rainbow (3.1.1) rake (13.3.0) - regexp_parser (2.11.2) - rubocop (1.80.0) + regexp_parser (2.12.0) + rubocop (1.88.2) json (~> 2.3) language_server-protocol (~> 3.17.0.2) lint_roller (~> 1.1.0) - parallel (~> 1.10) + parallel (>= 1.10) parser (>= 3.3.0.2) rainbow (>= 2.2.2, < 4.0) regexp_parser (>= 2.9.3, < 3.0) - rubocop-ast (>= 1.46.0, < 2.0) + rubocop-ast (>= 1.49.0, < 2.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 2.4.0, < 4.0) - rubocop-ast (1.46.0) + rubocop-ast (1.50.0) parser (>= 3.3.7.2) - prism (~> 1.4) + prism (~> 1.7) ruby-progressbar (1.13.0) - unicode-display_width (3.1.5) - unicode-emoji (~> 4.0, >= 4.0.4) - unicode-emoji (4.0.4) + unicode-display_width (3.2.0) + unicode-emoji (~> 4.1) + unicode-emoji (4.2.0) PLATFORMS arm64-darwin-24 ruby DEPENDENCIES - featurevisor (~> 1.0) + featurevisor (~> 2.0) rake (~> 13.0) rubocop (~> 1.50)