From 4365ac6bcb38b27f34d7157d1a67af92cb56c902 Mon Sep 17 00:00:00 2001 From: Sebastian Kippe Date: Tue, 5 Mar 2024 13:43:48 +0100 Subject: [PATCH] Add Gitea Actions config --- .gitea/workflows/ruby.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .gitea/workflows/ruby.yml diff --git a/.gitea/workflows/ruby.yml b/.gitea/workflows/ruby.yml new file mode 100644 index 0000000..50c4ce9 --- /dev/null +++ b/.gitea/workflows/ruby.yml @@ -0,0 +1,33 @@ +name: Tests + +on: + push: + # branches: [ master ] + pull_request: + # branches: [ master ] + +permissions: + contents: read + +jobs: + test: + runs-on: ubuntu-22.04 + strategy: + matrix: + ruby-version: ['3.0', '3.2', '3.3'] + redis-version: [6, 7] + steps: + - uses: actions/checkout@v3 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby-version }} + bundler-cache: true # runs 'bundle install' and caches installed gems automatically + - name: Start Redis + uses: supercharge/redis-github-action@1.4.0 + with: + redis-version: ${{ matrix.redis-version }} + - name: Configure + run: cp config.yml.erb.example config.yml.erb + - name: Run tests + run: bundle exec rake test