Update dependency minitest to v5.25.2 #152
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: steps | |
on: | |
push: | |
branches: [main, master] | |
pull_request: | |
branches: [main, master] | |
jobs: | |
test: | |
name: test on ruby ${{ matrix.ruby }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- uses: ruby/setup-ruby@master | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
- run: gem install bundler | |
- run: bundle install | |
- run: bundle exec rake | |
- run: bundle exec overcommit --sign | |
- env: | |
GIT_AUTHOR_NAME: John Doe | |
GIT_AUTHOR_EMAIL: johndoe@example.com | |
run: bundle exec overcommit --run | |
strategy: | |
matrix: | |
ruby: ['3.0', '3.1', '3.2', '3.3'] | |
deploy: | |
if: github.ref == 'refs/heads/main' | |
name: to rubygems | |
needs: test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- uses: ruby/setup-ruby@master | |
with: | |
ruby-version: 3.3 | |
- env: | |
RUBYGEMS_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }} | |
run: | | |
mkdir -p $HOME/.gem | |
touch $HOME/.gem/credentials | |
chmod 0600 $HOME/.gem/credentials | |
printf -- "---\n:rubygems_api_key: ${RUBYGEMS_API_KEY}\n" > $HOME/.gem/credentials | |
gem build *.gemspec | |
gem push *.gem |