Skip to content

Merge pull request #63 from sharesight/update/ruby_3_3_0 #40

Merge pull request #63 from sharesight/update/ruby_3_3_0

Merge pull request #63 from sharesight/update/ruby_3_3_0 #40

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
name: Tests
on:
push
permissions:
contents: read
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ['3.1.4', '3.3.0']
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: Run tests
run: bundle exec rake test
- name: Slack notification
if: success() || failure()
uses: rtCamp/action-slack-notify@v2
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_CHANNEL: "ci-${{ github.event.repository.name }}"
SLACK_COLOR: ${{ job.status }} # automatic colour based on job status
SLACK_ICON_EMOJI: ':sharesight_cat:'
SLACK_TITLE: "Test run with ruby ${{matrix.ruby-version}} *${{ job.status }}* (by ${{ github.actor }})"
SLACK_USERNAME: GA tests
SLACK_FOOTER: ''
MSG_MINIMAL: actions url,commit