Upgrade Minitest to version 5.22.x (Drop Ruby 2.4 and 2.5 from CI) #477
Workflow file for this run
This file contains 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: 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 |