Skip to content

Merge pull request #45 from cul/feature/FOLIOSYNC-17-clear-remaining-… #210

Merge pull request #45 from cul/feature/FOLIOSYNC-17-clear-remaining-…

Merge pull request #45 from cul/feature/FOLIOSYNC-17-clear-remaining-… #210

Workflow file for this run

name: CI
on:
push:
branches:
- '**'
jobs:
ci:
runs-on: ubuntu-latest
name: Ruby ${{ matrix.ruby }}
strategy:
matrix:
ruby:
- '3.3.5'
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Copy config files
run: |
mkdir -p config
for file in config/templates/*.yml; do
dest="config/$(basename "$file")"
if [ -f "$dest" ]; then
echo "File already exists (skipping): $dest"
else
cp "$file" "$dest"
echo "Created file at: $dest"
fi
done
- name: Run rubocop
run: bundle exec rubocop
- name: Run rspec
run: bundle exec rspec