Skip to content

Merge pull request #46 from ahasunos/patch-fix-jekyll-deployment #83

Merge pull request #46 from ahasunos/patch-fix-jekyll-deployment

Merge pull request #46 from ahasunos/patch-fix-jekyll-deployment #83

Workflow file for this run

name: Ruby Gem Test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
strategy:
matrix:
ruby-version: [3.1, 3.2]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true # Cache the gems for faster builds
- name: Install dependencies
run: bundle install
- name: Run tests
run: bundle exec rspec
- name: Upload coverage report
if: matrix.os == 'ubuntu-latest' && matrix.ruby-version == '3.1'
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: coverage/