Skip to content

Upgrade Minitest to version 5.22.x (Drop Ruby 2.4 and 2.5 from CI) #477

Upgrade Minitest to version 5.22.x (Drop Ruby 2.4 and 2.5 from CI)

Upgrade Minitest to version 5.22.x (Drop Ruby 2.4 and 2.5 from CI) #477

Workflow file for this run

name: Skunk
on: [push, pull_request]
jobs:
skunk:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1
bundler-cache: true
- name: Run test suite with COVERAGE=true
run: |
gem install bundler
bundle install --jobs 4 --retry 3
COVERAGE=true bundle exec rake test
- name: Run Skunk on Project
run: |
gem install skunk
CURRENT_BRANCH="$(git rev-parse --abbrev-ref HEAD)"
if [[ "$CURRENT_BRANCH" != "main" ]]; then
echo "Executing within branch: $CURRENT_BRANCH"
skunk lib/ -b master
else
echo "Executing within master branch"
skunk lib/
fi