Adding CHANGELOG generator and make task #167
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: Ruby | |
on: | |
pull_request: | |
push: { branches: [master] } | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
ruby-version: [3.3.5, 3.2.4, 3.1.5, 3.0.7] | |
env: | |
RUBY_LATEST_VERSION: "3.3.5" | |
RUBY_VERSION: ${{ matrix.ruby-version }} | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Ruby ${{ matrix.ruby-version }} | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby-version }} | |
- name: Run Specs for V5 Puma | |
run: | | |
set -x; set -e; \ | |
gem install bundler:2.5.23; \ | |
export BUNDLE_GEMFILE=Gemfile.puma-v5; \ | |
bundle install -j 4 && bundle exec rspec 2>/dev/null | |
- name: Run Specs fo V6 Puma | |
run: | | |
set -x; set -e; \ | |
gem install bundler:2.5.23; \ | |
export BUNDLE_GEMFILE=Gemfile.puma-v6; \ | |
bundle install -j 4 && bundle exec rspec 2>/dev/null | |
- name: Rubocop | |
run: | | |
export BUNDLE_GEMFILE=Gemfile.puma-v6; \ | |
bundle exec rubocop --parallel --format progress | |
- name: Upload to Codecov | |
run: | | |
# only upload for the latest Ruby Version | |
if [[ $(ruby -e 'puts RUBY_VERSION') == "${RUBY_LATEST_VERSION}" ]]; then | |
curl -Os https://uploader.codecov.io/latest/linux/codecov | |
chmod +x codecov | |
./codecov | |
fi |