Skip to content

Commit

Permalink
Add GHA workflow to run tests against several ruby versions
Browse files Browse the repository at this point in the history
  • Loading branch information
chen-anders committed Nov 30, 2023
1 parent 97062bc commit a975d28
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Run Tests
on: push

jobs:
test:
strategy:
matrix:
ruby_version: ['2.7', '3.0', '3.1', '3.2']
runs-on: ubuntu-22.04
steps:
- name: Install NSQ
shell: bash
run: |
wget https://github.com/nsqio/nsq/releases/download/v1.2.1/nsq-1.2.1.linux-amd64.go1.16.6.tar.gz
tar xvzf nsq-1.2.1.linux-amd64.go1.16.6.tar.gz
mv nsq-1.2.1.linux-amd64.go1.16.6/bin/* /usr/local/bin
- name: Check out Git repository
uses: actions/checkout@v4

- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby_version }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically

- name: Run tests
shell: bash
run: |
echo "path: $PATH"
bundle exec rspec spec

0 comments on commit a975d28

Please sign in to comment.