Merge pull request #45 from cul/feature/FOLIOSYNC-17-clear-remaining-… #210
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |