Skip to content

Commit

Permalink
Run test via GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
alexisbernard committed Oct 7, 2024
1 parent 4456e51 commit 4de82eb
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: test

on: [push, pull_request]

permissions:
contents: read

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
ruby-version: ["head", "3.3", "3.2", "3.1", "3.0", "2.7", "2.6", "2.5"]

steps:
- uses: actions/checkout@v4

- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true

# - name: Install Elasticsearch
# run: |
# wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo gpg --dearmor -o /usr/share/keyrings/elasticsearch-keyring.gpg
# sudo apt-get install apt-transport-https
# echo "deb [signed-by=/usr/share/keyrings/elasticsearch-keyring.gpg] https://artifacts.elastic.co/packages/8.x/apt stable main" | sudo tee /etc/apt/sources.list.d/elastic-8.x.list
# sudo apt-get update && sudo apt-get install elasticsearch

- run: sudo apt-get install redis-server
- run: bundle install
- run: bundle exec rake

0 comments on commit 4de82eb

Please sign in to comment.