instapaper/.github/workflows/ci.yml
Sami Samhuri 51f01888e0
Update CI workflows (#2)
* Update GitHub workflows

* More updates

* Drop EOL Ruby 3.1 from test matrix

* Ignore code duplication in specs

* Fix lint errors

* More lint fixes

* Ok how about now

* Wire up JSCPD config

* Disable JSCPD entirely
2025-06-08 14:04:05 -07:00

47 lines
1.1 KiB
YAML

name: CI
on:
pull_request:
branches: ["**"]
permissions:
contents: read
jobs:
# Set the job key. The key is displayed as the job name
# when a job name is not provided
tests:
strategy:
matrix:
ruby: ["3.4", "3.3", "3.2"]
name: Tests - Ruby ${{ matrix.ruby }}
# Set the type of machine to run on
runs-on: ubuntu-latest
steps:
# Checks out a copy of your repository on the ubuntu-latest machine
- name: Checkout code
uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Bundle install
run: |
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3 --without development
- name: Run tests
run: |
bundle exec rake test