From 902b185d9685dfad2bc547d319263c5089f67c19 Mon Sep 17 00:00:00 2001 From: Andrea Date: Wed, 3 Sep 2025 12:03:22 +0200 Subject: [PATCH] chore: add tests workflow --- .gitea/workflows/run-tests.yaml | 16 ++++++++++++++++ Gemfile | 8 ++++++-- Gemfile.lock | 4 ++++ 3 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 .gitea/workflows/run-tests.yaml diff --git a/.gitea/workflows/run-tests.yaml b/.gitea/workflows/run-tests.yaml new file mode 100644 index 0000000..38de101 --- /dev/null +++ b/.gitea/workflows/run-tests.yaml @@ -0,0 +1,16 @@ +name: Run tests +on: + push: + +jobs: + test-project: + runs-on: ubuntu-latest + steps: + - name: Check out repository code + uses: actions/checkout@v5 + - name: Setup ruby + uses: ruby/setup-ruby + - name: Install dependencies + run: bundle install + - name: Run tests + run: bundle exec rake \ No newline at end of file diff --git a/Gemfile b/Gemfile index 9c228f8..ba23d1b 100644 --- a/Gemfile +++ b/Gemfile @@ -1,6 +1,10 @@ # frozen_string_literal: true -source "https://rubygems.org" +source 'https://rubygems.org' # gem "rails" -gem 'rubocop', require: false \ No newline at end of file +gem 'minitest', '~> 5.25' + +gem 'rake', '~> 13.3' + +gem 'rubocop', require: false diff --git a/Gemfile.lock b/Gemfile.lock index 4f93855..2db42d2 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -5,6 +5,7 @@ GEM json (2.13.2) language_server-protocol (3.17.0.5) lint_roller (1.1.0) + minitest (5.25.5) parallel (1.27.0) parser (3.3.9.0) ast (~> 2.4.1) @@ -12,6 +13,7 @@ GEM prism (1.4.0) racc (1.8.1) rainbow (3.1.1) + rake (13.3.0) regexp_parser (2.11.2) rubocop (1.80.1) json (~> 2.3) @@ -37,6 +39,8 @@ PLATFORMS x86_64-linux DEPENDENCIES + minitest (~> 5.25) + rake (~> 13.3) rubocop BUNDLED WITH